mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-07-01 18:16:43 -04:00
Merge pull request #192 from galgeek/ss-fix
ss['stop'] not alway set here
This commit is contained in:
commit
e22d80b9a4
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue