mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-14 07:02:30 +02:00
Fixed cpu module: Provide stub implementation for parseCpuFrequencies
This commit is contained in:
@ -99,9 +99,11 @@ waybar::AModule* waybar::Factory::makeModule(const std::string& name) const {
|
||||
if (ref == "cpu") {
|
||||
return new waybar::modules::Cpu(id, config_[name]);
|
||||
}
|
||||
#if defined(HAVE_CPU_LINUX)
|
||||
if (ref == "cpu_frequency") {
|
||||
return new waybar::modules::CpuFrequency(id, config_[name]);
|
||||
}
|
||||
#endif
|
||||
if (ref == "cpu_usage") {
|
||||
return new waybar::modules::CpuUsage(id, config_[name]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user