mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 08:39:59 -05:00
Merge pull request #192 from galgeek/ss-fix
ss['stop'] not alway set here
This commit is contained in:
commit
e22d80b9a4
@ -153,7 +153,11 @@ class ElapsedMixIn(object):
|
|||||||
'''
|
'''
|
||||||
dt = 0
|
dt = 0
|
||||||
for ss in self.starts_and_stops[:-1]:
|
for ss in self.starts_and_stops[:-1]:
|
||||||
|
if ss['stop']:
|
||||||
dt += (ss['stop'] - ss['start']).total_seconds()
|
dt += (ss['stop'] - ss['start']).total_seconds()
|
||||||
|
else:
|
||||||
|
self.logger.warning("missing expected ss['stop']")
|
||||||
|
dt += (doublethink.utcnow() - ss['start']).total_seconds()
|
||||||
ss = self.starts_and_stops[-1]
|
ss = self.starts_and_stops[-1]
|
||||||
if ss['stop']:
|
if ss['stop']:
|
||||||
dt += (ss['stop'] - ss['start']).total_seconds()
|
dt += (ss['stop'] - ss['start']).total_seconds()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user