summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author4ur3l13n <aurelien@hackers.camp>2015-08-06 17:58:21 +0200
committer4ur3l13n <aurelien@hackers.camp>2015-08-06 17:58:21 +0200
commit295eb4e7e8cfa9f5afe7588085cd4b0509efe063 (patch)
treeab93ddd7a6c7ee4dacfc781995a70eeb05041bf3
parent28af3d42e0ea56a9fd0efe53a435bb5d5d5d0cbf (diff)
correction on ram reading
-rwxr-xr-xparaboley2
1 files changed, 1 insertions, 1 deletions
diff --git a/paraboley b/paraboley
index bef2eea..3f7667f 100755
--- a/paraboley
+++ b/paraboley
@@ -288,7 +288,7 @@ class ramDisplay(display):
def format_output(self, instring):
ram = ''.join(line for line in str(instring).split('\n') if\
line.startswith('Mem:')).split()
- used = int(ram[2]) - int(ram[5]) - int(ram[6])
+ used = int(ram[2])
total = int(ram[1])
title = 'RAM'
try: