Skip to content

Commit

Permalink
Changed psutil.phymem_usage to psutil.virtual_memory. Closes #6.
Browse files Browse the repository at this point in the history
  • Loading branch information
sandyjmacdonald committed Jul 8, 2016
1 parent 81a7cd9 commit 2892eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mem_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ def show_graph(v, r, g, b):
set_brightness(0.1)

while True:
v = psutil.phymem_usage().percent / 100.0
v = psutil.virtual_memory().percent / 100.0
show_graph(v, 255, 0, 255)
time.sleep(0.01)

0 comments on commit 2892eb0

Please sign in to comment.