Fix bug in battery script
This commit is contained in:
+1
-1
@@ -164,7 +164,7 @@ def monitor_stats():
|
||||
|
||||
cpu_values[-1] = cpu_percent
|
||||
mem_values[-1] = mem_percent
|
||||
battery_index = round(11 * battery.percent / 100)
|
||||
battery_index = round(battery.percent / 10)
|
||||
battery_icon = batteries_charging[battery_index] if battery.power_plugged else batteries[battery_index]
|
||||
|
||||
if battery.power_plugged:
|
||||
|
||||
Reference in New Issue
Block a user