Commit bda7b748 authored by Alexandra's avatar Alexandra

test with ram as max

parent b332f184
This diff is collapsed.
This diff is collapsed.
...@@ -17,6 +17,6 @@ client.connect(('localhost', 9040)) ...@@ -17,6 +17,6 @@ client.connect(('localhost', 9040))
processes = list(map(lambda pid : psutil.Process(int(pid)), pids)) processes = list(map(lambda pid : psutil.Process(int(pid)), pids))
while (1) : while (1) :
ram = sum(list(map(lambda p : (p.memory_info().rss)/1024/1024, processes))) ram = max(list(map(lambda p : (p.memory_info().rss)/1024/1024, processes)))
client.send(str(ram)) client.send(str(ram))
time.sleep(0.1) time.sleep(0.1)
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