Commit 9509a160 authored by Alexandra's avatar Alexandra Committed by Alexandra Rogova

test with ram as max

parent 30adf866
This diff is collapsed.
This diff is collapsed.
......@@ -17,6 +17,6 @@ client.connect(('localhost', 9040))
processes = list(map(lambda pid : psutil.Process(int(pid)), pids))
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))
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