Skip to content

Commit

Permalink
Fixed --seconds/--minutes in emdn-tap.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Sep 23, 2014
1 parent fa513c9 commit 024c518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emdn-tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def describeAdjustment(diff, newPrice, oldPrice):
now = time.time()
while True:
nextCommit = lastCommit + pargs.commit
timeLeft = cutoffTime - now if duration else nextCommit - now
timeLeft = endOfRun - now if duration else nextCommit - now
timeout = min(timeLeft, nextCommit - now) or None
for rec in firehose.drink(records=pargs.records, timeout=timeout):
consumeRecord(rec)
Expand Down

0 comments on commit 024c518

Please sign in to comment.