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

Commit

Permalink
dstat_snooze: Change colors when --bw/--blackonwhite
Browse files Browse the repository at this point in the history
This fixes #68
  • Loading branch information
dagwieers committed Feb 5, 2014
1 parent ab2541b commit 0a9f0fc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions plugins/dstat_snooze.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0a9f0fc

Please sign in to comment.