summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurie Clark-Michalek <bluepeppers@archlinux.us>2010-11-23 16:00:20 +0000
committerLaurie Clark-Michalek <bluepeppers@archlinux.us>2010-11-23 16:00:20 +0000
commita0bb405c6535d9b6619bfccad91f848e45bf4a84 (patch)
tree3a12b6347b0f720d471bfd4ee6996e69c7695d1f
parente9e54dcfea7b370642acb6503e31b8695ab81e9a (diff)
Fixed error calculating persentage used reported by tvieira
-rwxr-xr-xarchey2
1 files changed, 1 insertions, 1 deletions
diff --git a/archey b/archey
index 239b000..a46d848 100755
--- a/archey
+++ b/archey
@@ -285,7 +285,7 @@ def disk_display():
total = p1.splitlines()[-1]
used = total.split()[3]
size = total.split()[2]
- usedpercent = float(re.sub("[A-Z]", "", used)) / float(re.sub("[A-Z]", "", size)) * 100
+ usedpercent = float(total.split()[5][:-1])
if usedpercent <= 33:
fs = '%s%s %s/ %s' % (greenB, used, clear, size)
output ('Disk', fs)