Skip to content

Commit

Permalink
Fix for excessive CPU usage in emdn-tap.py
Browse files Browse the repository at this point in the history
pyzmq.poll wants 'None' rather than '0' for 'until something happens'
  • Loading branch information
kfsone committed Sep 15, 2014
1 parent 5642267 commit ca763a8
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 @@ -230,7 +230,7 @@ def main():
lastCommit, duration = time.time(), pargs.duration
recordsSinceLastCommit = []
try:
for rec in firehose.drink(records=pargs.records, timeout=duration):
for rec in firehose.drink(records=pargs.records, timeout=duration or None):
if pargs.commit:
now = time.time()
if now >= lastCommit + pargs.commit:
Expand Down

0 comments on commit ca763a8

Please sign in to comment.