summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJos Dehaes <jos.dehaes@gmail.com>2021-10-06 15:33:43 +0200
committerJos Dehaes <jos.dehaes@gmail.com>2021-10-06 15:34:12 +0200
commit66072711c24b2694c4a0054c58829095ed97ada2 (patch)
treefd7bb8389f8c1c9056095bb2261635ee31d89eb4
parent6bb0e930a2c44b4fb7d0d02a40f210fa12fdc657 (diff)
detect full
-rw-r--r--src/osx/btop_collect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osx/btop_collect.cpp b/src/osx/btop_collect.cpp
index 6b450a5..161ceac 100644
--- a/src/osx/btop_collect.cpp
+++ b/src/osx/btop_collect.cpp
@@ -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;
}