mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
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);
|
// 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
|
||||||
|
Loading…
Reference in New Issue
Block a user