From: Adam Emerson Date: Fri, 13 Dec 2024 20:22:22 +0000 (-0500) Subject: exporter: Asio deprecations X-Git-Tag: testing/wip-vshankar-testing-20250213.045228~6^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=1ab250796c1321bfc02335e797161b1ecfe5da62;p=ceph-ci.git exporter: Asio deprecations Signed-off-by: Adam Emerson --- diff --git a/src/exporter/DaemonMetricCollector.cc b/src/exporter/DaemonMetricCollector.cc index d27b3ac43c5..80cdf244586 100644 --- a/src/exporter/DaemonMetricCollector.cc +++ b/src/exporter/DaemonMetricCollector.cc @@ -48,14 +48,14 @@ void DaemonMetricCollector::request_loop() { dump_asok_metrics(sort_metrics, prio_limit, true, dump_response, schema_response, true); auto stats_period = g_conf().get_val("exporter_stats_period"); // time to wait before sending requests again - timer.expires_from_now(std::chrono::seconds(stats_period)); + timer.expires_after(std::chrono::seconds(stats_period)); request_loop(); }); } void DaemonMetricCollector::main() { shutdown_flag = false; - timer.expires_from_now(std::chrono::seconds(0)); + timer.expires_after(std::chrono::seconds(0)); request_loop(); io.run(); }