Small performance fixies
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>pull/2216/head
parent
24407dbf4a
commit
87023c39f8
|
@ -102,7 +102,6 @@ waybar::modules::Cava::Cava(const std::string& id, const Json::Value& config)
|
||||||
thread_fetch_input_ = [this] {
|
thread_fetch_input_ = [this] {
|
||||||
thread_fetch_input_.sleep_for(fetch_input_delay_);
|
thread_fetch_input_.sleep_for(fetch_input_delay_);
|
||||||
input_source_(&audio_data_);
|
input_source_(&audio_data_);
|
||||||
dp.emit();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
thread_ = [this] {
|
thread_ = [this] {
|
||||||
|
|
|
@ -73,7 +73,7 @@ auto WorkspaceManager::workspace_comparator() const
|
||||||
try {
|
try {
|
||||||
auto is_number_less = std::stoi(lhs->get_name()) < std::stoi(rhs->get_name());
|
auto is_number_less = std::stoi(lhs->get_name()) < std::stoi(rhs->get_name());
|
||||||
return is_number_less;
|
return is_number_less;
|
||||||
} catch (std::invalid_argument) {
|
} catch (const std::invalid_argument &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue