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

Commit

Permalink
Difference in integer rounding should not affect colouring
Browse files Browse the repository at this point in the history
  • Loading branch information
dagwieers committed Mar 12, 2008
1 parent ce014a9 commit 5c811f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
@@ -1,6 +1,7 @@
* 0.6.7svn - ... - release 09/03/2008
- Added improved tick patch (Kelly Long)
- Show milliseconds in dstat_time when using --debug cfr. dstat_epoch
- Difference in integer rounding should not affect colouring

* 0.6.7 - Cambridge overdue - released 26/02/2008
- Only rewrite xterm title when XTERM_SHELL is set to bash
Expand Down
2 changes: 1 addition & 1 deletion dstat
Expand Up @@ -1571,7 +1571,7 @@ def cprint(var, format = ('f', 4, 1000)):
if ret == '0':
color = 'default'
elif type in ('d', 'p'):
color = colors[int(var/mp)%len(colors)]
color = colors[int(round(var)/mp)%len(colors)]
elif type in ('f'):
color = colors[c%len(colors)]
else:
Expand Down

0 comments on commit 5c811f8

Please sign in to comment.