Small fix
This commit is contained in:
parent
f76fb13d8a
commit
ea72d4d451
@ -54,7 +54,7 @@ def add_data():
|
|||||||
timestamp = time.strftime('%H:%M:%S')
|
timestamp = time.strftime('%H:%M:%S')
|
||||||
x_data.append(timestamp)
|
x_data.append(timestamp)
|
||||||
|
|
||||||
cpu = table.getNumber("CPU Usage", -1)
|
cpu = min(max(table.getNumber("CPU Usage", -1), 0), 100)
|
||||||
temp = table.getNumber("Temperature", -1)
|
temp = table.getNumber("Temperature", -1)
|
||||||
mem = table.getNumber("Memory", -1)
|
mem = table.getNumber("Memory", -1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user