fix time_remaining. FreeBSD sysctl returns minutes and not hours
This commit is contained in:
parent
d4d35e2f89
commit
6156a62294
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue