System Status [main]

Round temp and cpu values

=> d54a743380e16133fdc5d1e4b25fa02455ea9693

diff --git a/system-status.py b/system-status.py
index a8da57a..951eddc 100644
--- a/system-status.py
+++ b/system-status.py
@@ -20,8 +20,8 @@ TEMP_COLOR    = RED
 CPU_COLOR     = BLUE
 NETWORK_COLOR = PINK
 
-MIN_TEMP = 40
-MAX_TEMP = 80
+MIN_TEMP = 45
+MAX_TEMP = 85
 
 
 class SystemStatus:
@@ -106,10 +106,10 @@ class SystemStatus:
         adjusted = max(0, temp - MIN_TEMP)
         percent = min(1, adjusted / (MAX_TEMP - MIN_TEMP))
 
-        return int(self.height * percent)
+        return round(self.height * percent)
 
     def getCpuValue(self):
-        return int(self.height * (psutil.cpu_percent() / 100))
+        return round(self.height * (psutil.cpu_percent() / 100))
 
     def getNetworkValue(self):
         connections = psutil.net_connections(kind='inet')
Proxy Information
Original URL
gemini://git.cifelli.xyz/system-status/main/cdiff/d54a743380e16133fdc5d1e4b25fa02455ea9693
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
488.791163 milliseconds
Gemini-to-HTML Time
0.149677 milliseconds

This content has been proxied by September (ba2dc).