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