ALabel: make use of std::chrono::max() instead of magic number

pull/2586/head
Tamino Bauknecht 2023-10-20 22:37:47 +02:00
parent a73669be6a
commit 89e85db790
No known key found for this signature in database
GPG Key ID: 77837396BE935C6C
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ ALabel::ALabel(const Json::Value& config, const std::string& name, const std::st
: AModule(config, name, id, config["format-alt"].isString() || enable_click, enable_scroll),
format_(config_["format"].isString() ? config_["format"].asString() : format),
interval_(config_["interval"] == "once"
? std::chrono::seconds(100000000)
? std::chrono::seconds::max()
: std::chrono::seconds(
config_["interval"].isUInt() ? config_["interval"].asUInt() : interval)),
default_format_(format_) {