summaryrefslogtreecommitdiffstats
path: root/src/osx/btop_collect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/osx/btop_collect.cpp')
-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;
}