Permalink
Browse files

dstat_snooze: Change colors when --bw/--blackonwhite

This fixes #68
  • Loading branch information...
1 parent ab2541b commit 0a9f0fc8eeb715be9c9a0cc339e5318233df820b @dagwieers committed Feb 5, 2014
Showing with 8 additions and 3 deletions.
  1. +8 −3 plugins/dstat_snooze.py
View
@@ -20,9 +20,14 @@ def show(self):
if self.val['snooze'] > step + 1:
return ansi['default'] + ' -'
- color = 'white'
- if step != op.delay:
- color = 'gray'
+ if op.blackonwhite:
+ color = 'black'
+ if step != op.delay:
+ color = 'darkgray'
+ else:
+ color = 'white'
+ if step != op.delay:
+ color = 'gray'
snoze, c = fchg(self.val['snooze'], 6, 1000)

0 comments on commit 0a9f0fc

Please sign in to comment.