mirror of https://github.com/aristocratos/btop.git
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) {
|
|
||||||
status = "full";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (percent == 100) {
|
||||||
|
status = "full";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
has_battery = false;
|
has_battery = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue