fix: lint

pull/2585/head
Alex 2023-10-17 19:29:06 +02:00
parent 4d7eb3bd15
commit 208928ded5
3 changed files with 4 additions and 3 deletions

View File

@ -21,7 +21,8 @@ class CpuUsage : public ALabel {
auto update() -> void override;
// This is a static member because it is also used by the cpu module.
static std::tuple<std::vector<uint16_t>, std::string> getCpuUsage(std::vector<std::tuple<size_t, size_t>>&);
static std::tuple<std::vector<uint16_t>, std::string> getCpuUsage(
std::vector<std::tuple<size_t, size_t>>&);
private:
static std::vector<std::tuple<size_t, size_t>> parseCpuinfo();

View File

@ -24,7 +24,6 @@ class Load : public ALabel {
static std::tuple<double, double, double> getLoad();
private:
util::SleeperThread thread_;
};

View File

@ -175,7 +175,8 @@ auto waybar::modules::Clock::update() -> void {
tz, date::local_days(shiftedDay) +
(now.get_local_time() - date::floor<date::days>(now.get_local_time())))};
label_.set_markup(fmt::format(locale_, fmt::runtime(format_), now.get_local_time().time_since_epoch()));
label_.set_markup(
fmt::format(locale_, fmt::runtime(format_), now.get_local_time().time_since_epoch()));
if (tooltipEnabled()) {
const std::string tz_text{(is_timezoned_list_in_tooltip_) ? timezones_text(now.get_sys_time())