Merge pull request #4895 from BryceGust/fix/interval-cast
fix: float interval cast
This commit is contained in:
@@ -26,7 +26,7 @@ ALabel::ALabel(const Json::Value& config, const std::string& name, const std::st
|
|||||||
: std::chrono::milliseconds(
|
: std::chrono::milliseconds(
|
||||||
(config_["interval"].isNumeric()
|
(config_["interval"].isNumeric()
|
||||||
? std::max(1L, // Minimum 1ms due to millisecond precision
|
? std::max(1L, // Minimum 1ms due to millisecond precision
|
||||||
static_cast<long>(config_["interval"].asDouble()) * 1000)
|
static_cast<long>(config_["interval"].asDouble() * 1000))
|
||||||
: 1000 * (long)interval))),
|
: 1000 * (long)interval))),
|
||||||
default_format_(format_) {
|
default_format_(format_) {
|
||||||
label_.set_name(name);
|
label_.set_name(name);
|
||||||
|
|||||||
Reference in New Issue
Block a user