fix: lint
parent
4d7eb3bd15
commit
208928ded5
|
@ -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();
|
||||
|
|
|
@ -24,7 +24,6 @@ class Load : public ALabel {
|
|||
static std::tuple<double, double, double> getLoad();
|
||||
|
||||
private:
|
||||
|
||||
util::SleeperThread thread_;
|
||||
};
|
||||
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue