fix time_remaining. FreeBSD sysctl returns minutes and not hours

This commit is contained in:
Loïc Bartoletti 2022-10-04 08:01:59 +02:00
parent d4d35e2f89
commit 6156a62294
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ const std::tuple<uint8_t, float, std::string, float> waybar::modules::Battery::g
}
// spdlog::info("{} {} {} {}", capacity,time,status,rate);
return {capacity, time, status, rate};
return {capacity, time / 60.0, status, rate};
#elif defined(__linux__)
uint32_t total_power = 0; // μW