Commit a30e7974 authored by Tristan Cavelier's avatar Tristan Cavelier

check_computer_memory: rephrase messages

parent 4d2b69e4
......@@ -64,9 +64,9 @@ def main():
if memory is 0:
return 0
if memory['free'] > threshold:
print "All Good. total memory: "+ str(memory['total']) + " and used memory: "+ str(memory['used'])
print "OK - memory used: {:d}% ({}B of {}B)".format(memory["used"] * 100 / memory["total"], memory["used"], memory["total"])
return 0
print "Ops! Memory is low, total memory: "+ str(memory['total']) + " and used memory: "+ str(memory['used'])
print "Low memory - usage: {:d}% ({}B of {}B)".format(memory["used"] * 100 / memory["total"], memory["used"], memory["total"])
return 1
if __name__ == "__main__":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment