From d200ce45aeafbde04e500f67aea91c75de588a73 Mon Sep 17 00:00:00 2001 From: Steffen Winter Date: Tue, 30 Apr 2024 15:32:41 +0200 Subject: [PATCH] Show time in days when remaining battery exceeds an estimation of 24h --- src/btop_draw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/btop_draw.cpp b/src/btop_draw.cpp index bfd12ce..76ad6e2 100644 --- a/src/btop_draw.cpp +++ b/src/btop_draw.cpp @@ -723,7 +723,7 @@ namespace Cpu { old_watts = watts; old_seconds = seconds; old_status = status; - const string str_time = (seconds > 0 ? sec_to_dhms(seconds, true, true) : ""); + const string str_time = (seconds > 0 ? sec_to_dhms(seconds, false, true) : ""); const string str_percent = to_string(percent) + '%'; const string str_watts = (watts != -1 and Config::getB("show_battery_watts") ? fmt::format("{:.2f}", watts) + 'W' : ""); const auto& bat_symbol = bat_symbols.at((bat_symbols.contains(status) ? status : "unknown"));