Browse files

Make dstat behave exactly like vmstat (and others) with respect to se…

…cond parameter 'count'
  • Loading branch information...
1 parent 3d1289e commit 8169bb855737d8c5014cdb4f41b581f18c03e8c0 @dagwieers committed Nov 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 dstat
View
2 dstat
@@ -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()

0 comments on commit 8169bb8

Please sign in to comment.