This commit is contained in:
j 2017-01-07 16:42:09 +01:00
parent d6ef829998
commit 308513b5de

View file

@ -32,7 +32,7 @@ class Timelines():
self.tile_path = tile_path
self.cuts_path = cuts_path
self.detect_cuts = cuts_path != None
self.detect_cuts = cuts_path is not None
self.points = points
@ -532,7 +532,7 @@ class Profiler():
def set_task(self, task):
now = time()
if self.task:
if not self.task in self.times:
if self.task not in self.times:
self.times[self.task] = 0
else:
self.times[self.task] += now - self.time