Fixed format errors
parent
93d66a9258
commit
91b6629103
|
@ -1,4 +1,5 @@
|
|||
#include "modules/cpu.hpp"
|
||||
|
||||
#include "modules/cpu_frequency.hpp"
|
||||
#include "modules/cpu_usage.hpp"
|
||||
#include "modules/load.hpp"
|
||||
|
|
|
@ -52,7 +52,8 @@ auto waybar::modules::CpuUsage::update() -> void {
|
|||
ALabel::update();
|
||||
}
|
||||
|
||||
std::tuple<std::vector<uint16_t>, std::string> waybar::modules::CpuUsage::getCpuUsage(std::vector<std::tuple<size_t, size_t>>& prev_times) {
|
||||
std::tuple<std::vector<uint16_t>, std::string> waybar::modules::CpuUsage::getCpuUsage(
|
||||
std::vector<std::tuple<size_t, size_t>>& prev_times) {
|
||||
if (prev_times.empty()) {
|
||||
prev_times = CpuUsage::parseCpuinfo();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
|
|
Loading…
Reference in New Issue