Skip to content

Commit

Permalink
Merge pull request #835 from imwints/battery
Browse files Browse the repository at this point in the history
  • Loading branch information
aristocratos authored Apr 30, 2024
2 parents 924c3f3 + d200ce4 commit 3a6f816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/btop_draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 3a6f816

Please sign in to comment.