From ea72d4d451c3951d1980d4de90c6bf31f6ea43a1 Mon Sep 17 00:00:00 2001 From: wildercayden Date: Thu, 26 Jun 2025 16:57:10 -0400 Subject: [PATCH] Small fix --- TableLaptop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TableLaptop.py b/TableLaptop.py index 25d94cf..a9f039c 100644 --- a/TableLaptop.py +++ b/TableLaptop.py @@ -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)