summaryrefslogtreecommitdiff
path: root/archey
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <david@rawr.am>2010-11-17 02:07:47 -0800
committerDavid Vazgenovich Shakaryan <david@rawr.am>2010-11-17 02:07:47 -0800
commit8a07fa2bb91677a4650df39441539be798986f5e (patch)
treebd38e72dcb0fbd8fc35ac8f3b9eec3a3c1a1aaa5 /archey
parent8a937f9c9706accce14022b1252784fa45677b69 (diff)
parent1603bfb709671eeabc690ed93b461e152cccde6c (diff)
Merge branch 'master' of github.com:djmelik/archey
Diffstat (limited to 'archey')
-rwxr-xr-x[-rw-r--r--]archey3
1 files changed, 1 insertions, 2 deletions
diff --git a/archey b/archey
index 239b000..ecb82f1 100644..100755
--- a/archey
+++ b/archey
@@ -88,7 +88,6 @@ sh_dict = {
# Define Colour Scheme
-clear = '\x1b[0m'
blackB = '\x1b[0;30m'
blackB = '\x1b[1;30m'
redN = '\x1b[0;31m'
@@ -287,7 +286,7 @@ def disk_display():
size = total.split()[2]
usedpercent = float(re.sub("[A-Z]", "", used)) / float(re.sub("[A-Z]", "", size)) * 100
if usedpercent <= 33:
- fs = '%s%s %s/ %s' % (greenB, used, clear, size)
+ fs = '%s%s %s/ %s' % (greenB, used, , size)
output ('Disk', fs)
if usedpercent > 33 and usedpercent < 67:
fs = '%s%s %s/ %s' % (yellowB, used, clear, size)