summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDjMelik <melik@archlinux.us>2011-01-14 01:05:30 -0800
committerDjMelik <melik@archlinux.us>2011-01-14 01:05:30 -0800
commita2b262e56b67d5575dc4d4f1c1b397240add6d90 (patch)
tree4909835577689d8ee85f5ff8eae2d3c8cdd9df5c
parentb8624558a9620b7bb2457fc668ace490a02ec4d3 (diff)
fixed color output
-rw-r--r--archey8
1 files changed, 4 insertions, 4 deletions
diff --git a/archey b/archey
index e94f90c..d52baf9 100644
--- a/archey
+++ b/archey
@@ -209,9 +209,9 @@ class RAM:
used = int(ram[2]) - int(ram[5]) - int(ram[6])
usedpercent = ((float(used) / float(ram[1])) * 100)
if usedpercent <= 33:
- ramdisplay = '%s%s MB %s/ %s MB' % (colorDict['Sensors'][2], used, colorDict['Clear'][0], ram[1])
- if usedpercent > 33 and usedpercent < 67:
ramdisplay = '%s%s MB %s/ %s MB' % (colorDict['Sensors'][1], used, colorDict['Clear'][0], ram[1])
+ if usedpercent > 33 and usedpercent < 67:
+ ramdisplay = '%s%s MB %s/ %s MB' % (colorDict['Sensors'][2], used, colorDict['Clear'][0], ram[1])
if usedpercent >= 67:
ramdisplay = '%s%s MB %s/ %s MB' % (colorDict['Sensors'][0], used, colorDict['Clear'][0], ram[1])
self.key = 'RAM'
@@ -226,9 +226,9 @@ class Disk:
usedpercent = float(total.split()[5][:-1])
if usedpercent <= 33:
- disk = '%s%s %s/ %s' % (colorDict['Sensors'][2], used, colorDict['Clear'][0], size)
- if usedpercent > 33 and usedpercent < 67:
disk = '%s%s %s/ %s' % (colorDict['Sensors'][1], used, colorDict['Clear'][0], size)
+ if usedpercent > 33 and usedpercent < 67:
+ disk = '%s%s %s/ %s' % (colorDict['Sensors'][2], used, colorDict['Clear'][0], size)
if usedpercent >= 67:
disk = '%s%s %s/ %s' % (colorDict['Sensors'][0], used, colorDict['Clear'][0], size)
self.key = 'Disk'