Small fix

This commit is contained in:
wildercayden 2025-06-26 16:57:10 -04:00
parent f76fb13d8a
commit ea72d4d451

View File

@ -54,7 +54,7 @@ def add_data():
timestamp = time.strftime('%H:%M:%S')
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)
mem = table.getNumber("Memory", -1)