diff options
author | Laurie Clark-Michalek <bluepeppers@archlinux.us> | 2010-11-23 16:00:20 +0000 |
---|---|---|
committer | Laurie Clark-Michalek <bluepeppers@archlinux.us> | 2010-11-23 16:00:20 +0000 |
commit | a0bb405c6535d9b6619bfccad91f848e45bf4a84 (patch) | |
tree | 3a12b6347b0f720d471bfd4ee6996e69c7695d1f | |
parent | e9e54dcfea7b370642acb6503e31b8695ab81e9a (diff) |
Fixed error calculating persentage used reported by tvieira
-rwxr-xr-x | archey | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |