mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 00:29:53 -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
|
||||
for ss in self.starts_and_stops[:-1]:
|
||||
if ss['stop']:
|
||||
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]
|
||||
if ss['stop']:
|
||||
dt += (ss['stop'] - ss['start']).total_seconds()
|
||||
|
Loading…
x
Reference in New Issue
Block a user