Fix bug in battery script
This commit is contained in:
parent
3f8d4a32f9
commit
75eea377c6
@ -164,7 +164,7 @@ def monitor_stats():
|
|||||||
|
|
||||||
cpu_values[-1] = cpu_percent
|
cpu_values[-1] = cpu_percent
|
||||||
mem_values[-1] = mem_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]
|
battery_icon = batteries_charging[battery_index] if battery.power_plugged else batteries[battery_index]
|
||||||
|
|
||||||
if battery.power_plugged:
|
if battery.power_plugged:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user