diff options
author | Jos Dehaes <jos.dehaes@gmail.com> | 2021-10-06 15:33:43 +0200 |
---|---|---|
committer | Jos Dehaes <jos.dehaes@gmail.com> | 2021-10-06 15:34:12 +0200 |
commit | 66072711c24b2694c4a0054c58829095ed97ada2 (patch) | |
tree | fd7bb8389f8c1c9056095bb2261635ee31d89eb4 /src | |
parent | 6bb0e930a2c44b4fb7d0d02a40f210fa12fdc657 (diff) |
detect full
Diffstat (limited to 'src')
-rw-r--r-- | src/osx/btop_collect.cpp | 6 |
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; } |