mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-28 22:21:35 +02:00
detect full
This commit is contained in:
parent
6bb0e930a2
commit
66072711c2
@ -358,11 +358,11 @@ namespace Cpu {
|
|||||||
bool isCharging = CFBooleanGetValue(charging);
|
bool isCharging = CFBooleanGetValue(charging);
|
||||||
if (isCharging) {
|
if (isCharging) {
|
||||||
status = "charging";
|
status = "charging";
|
||||||
|
}
|
||||||
|
}
|
||||||
if (percent == 100) {
|
if (percent == 100) {
|
||||||
status = "full";
|
status = "full";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
has_battery = false;
|
has_battery = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user