fix time_remaining. FreeBSD sysctl returns minutes and not hours

pull/1703/head
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); // spdlog::info("{} {} {} {}", capacity,time,status,rate);
return {capacity, time, status, rate}; return {capacity, time / 60.0, status, rate};
#elif defined(__linux__) #elif defined(__linux__)
uint32_t total_power = 0; // μW uint32_t total_power = 0; // μW