mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 00:29:53 -05:00
ss['stop'] not alway set
This commit is contained in:
parent
401ba7293c
commit
f4f0c02064
@ -153,7 +153,10 @@ class ElapsedMixIn(object):
|
||||
'''
|
||||
dt = 0
|
||||
for ss in self.starts_and_stops[:-1]:
|
||||
dt += (ss['stop'] - ss['start']).total_seconds()
|
||||
if ss['stop']:
|
||||
dt += (ss['stop'] - ss['start']).total_seconds()
|
||||
else:
|
||||
dt += (doublethink.utcnow() - ss['start']).total_seconds()
|
||||
ss = self.starts_and_stops[-1]
|
||||
if ss['stop']:
|
||||
dt += (ss['stop'] - ss['start']).total_seconds()
|
||||
|
Loading…
x
Reference in New Issue
Block a user