Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
Make dstat behave exactly like vmstat (and others) with respect to se…
Browse files Browse the repository at this point in the history
…cond parameter 'count'
  • Loading branch information
dagwieers committed Nov 29, 2013
1 parent 3d1289e commit 8169bb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dstat
Original file line number Diff line number Diff line change
Expand Up @@ -2549,7 +2549,7 @@ def main():
missed = 0

### Let the games begin
while update <= op.delay * op.count or op.count == -1:
while update <= op.delay * (op.count-1) or op.count == -1:
scheduler.enterabs(inittime + update, 1, perform, (update,))
# scheduler.enter(1, 1, perform, (update,))
scheduler.run()
Expand Down

0 comments on commit 8169bb8

Please sign in to comment.