Skip to content

Commit 1ab2507

Browse files
committed
exporter: Asio deprecations
Signed-off-by: Adam Emerson <aemerson@redhat.com>
1 parent b2e7631 commit 1ab2507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/exporter/DaemonMetricCollector.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ void DaemonMetricCollector::request_loop() {
4848
dump_asok_metrics(sort_metrics, prio_limit, true, dump_response, schema_response, true);
4949
auto stats_period = g_conf().get_val<int64_t>("exporter_stats_period");
5050
// time to wait before sending requests again
51-
timer.expires_from_now(std::chrono::seconds(stats_period));
51+
timer.expires_after(std::chrono::seconds(stats_period));
5252
request_loop();
5353
});
5454
}
5555

5656
void DaemonMetricCollector::main() {
5757
shutdown_flag = false;
58-
timer.expires_from_now(std::chrono::seconds(0));
58+
timer.expires_after(std::chrono::seconds(0));
5959
request_loop();
6060
io.run();
6161
}

0 commit comments

Comments
 (0)