X-Git-Url: https://git.enpas.org/?p=sysstatus.git;a=blobdiff_plain;f=src%2Fstatus%2Fbattery.c;h=79d65da49e13cbd631c24679b1876d502e450068;hp=5ce9b04dbfb78bbbe31d32dcb4bc415bceb55f65;hb=HEAD;hpb=624dbb241fc1cdc04b7c2bf3fb2398c5fd2de7c6 diff --git a/src/status/battery.c b/src/status/battery.c index 5ce9b04..79d65da 100644 --- a/src/status/battery.c +++ b/src/status/battery.c @@ -112,7 +112,7 @@ void status_battery(GlobalData *g, char *batname) batname, chargePercent); } else { snprintf(text, sizeof(text), "%s: %d%% %.1fh %.1fW", - batname, chargePercent, battTime, (float)voltageNow * (float)currentNow / 1000000.0); + batname, chargePercent, battTime, (float)voltageNow / 1000000.0 * (float)currentNow / 1000000.0); } line_append_item(g, &s);