mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 22:52:30 +02:00
Added changes made to the cpu module
This commit is contained in:
@ -17,8 +17,8 @@ namespace waybar::modules {
|
||||
class CpuFrequency : public ALabel {
|
||||
public:
|
||||
CpuFrequency(const std::string&, const Json::Value&);
|
||||
~CpuFrequency() = default;
|
||||
auto update() -> void;
|
||||
virtual ~CpuFrequency() = default;
|
||||
auto update() -> void override;
|
||||
|
||||
private:
|
||||
std::tuple<float, float, float> getCpuFrequency();
|
||||
|
@ -17,8 +17,8 @@ namespace waybar::modules {
|
||||
class CpuUsage : public ALabel {
|
||||
public:
|
||||
CpuUsage(const std::string&, const Json::Value&);
|
||||
~CpuUsage() = default;
|
||||
auto update() -> void;
|
||||
virtual ~CpuUsage() = default;
|
||||
auto update() -> void override;
|
||||
|
||||
private:
|
||||
std::tuple<std::vector<uint16_t>, std::string> getCpuUsage();
|
||||
|
@ -17,8 +17,8 @@ namespace waybar::modules {
|
||||
class Load : public ALabel {
|
||||
public:
|
||||
Load(const std::string&, const Json::Value&);
|
||||
~Load() = default;
|
||||
auto update() -> void;
|
||||
virtual ~Load() = default;
|
||||
auto update() -> void override;
|
||||
|
||||
private:
|
||||
std::tuple<double, double, double> getLoad();
|
||||
|
Reference in New Issue
Block a user