mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00
Fix usage of broker::convert(double,timespan)
This commit is contained in:
parent
0728676fd6
commit
a266d32dca
1 changed files with 3 additions and 3 deletions
|
@ -2050,9 +2050,9 @@ void Manager::PrepareForwarding(const std::string& name)
|
|||
|
||||
void Manager::SetMetricsExportInterval(double value)
|
||||
{
|
||||
broker::timespan ts;
|
||||
if ( broker::convert(value, ts) )
|
||||
bstate->endpoint.metrics_exporter().set_interval(ts);
|
||||
using dbl_seconds = std::chrono::duration<double>;
|
||||
auto ts = std::chrono::duration_cast<broker::timespan>(dbl_seconds{value});
|
||||
bstate->endpoint.metrics_exporter().set_interval(ts);
|
||||
}
|
||||
|
||||
void Manager::SetMetricsExportTopic(std::string value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue