X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/8c8326f793549dcc685f0e4ec3e29f1f3790d6d8..2604f25b16593ce73ac38982d5a227609b930e9e:/components/battery.c?ds=sidebyside diff --git a/components/battery.c b/components/battery.c index 152777e..53d94b5 100644 --- a/components/battery.c +++ b/components/battery.c @@ -122,7 +122,7 @@ if (load_apm_power_info(&apm_info)) { return bprintf("%u:%02u", apm_info.minutes_left / 60, - apm_info.minutes_left % 60); + apm_info.minutes_left % 60); } return NULL;