]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
exporter: Asio deprecations
authorAdam Emerson <aemerson@redhat.com>
Fri, 13 Dec 2024 20:22:22 +0000 (15:22 -0500)
committerAdam Emerson <aemerson@redhat.com>
Mon, 10 Feb 2025 20:19:19 +0000 (15:19 -0500)
Signed-off-by: Adam Emerson <aemerson@redhat.com>
src/exporter/DaemonMetricCollector.cc

index d27b3ac43c59cb1fe55a0026abcc26b9030574e4..80cdf24458618e6cc52e2c1b7e96014a6f37aaa0 100644 (file)
@@ -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<int64_t>("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();
 }