Fixed format errors

This commit is contained in:
Mann mit Hut 2023-09-13 21:59:42 +02:00
parent 93d66a9258
commit 91b6629103
No known key found for this signature in database
GPG Key ID: 02D4D60B8250CB8C
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#include "modules/cpu.hpp"
#include "modules/cpu_frequency.hpp"
#include "modules/cpu_usage.hpp"
#include "modules/load.hpp"

View File

@ -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));