From 66072711c24b2694c4a0054c58829095ed97ada2 Mon Sep 17 00:00:00 2001 From: Jos Dehaes Date: Wed, 6 Oct 2021 15:33:43 +0200 Subject: [PATCH] detect full --- src/osx/btop_collect.cpp | 6 +++--- 1 file 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; }