From 9d239e95418ddf48ffe0a8bdb1b59bc4460ca4b3 Mon Sep 17 00:00:00 2001 From: Christian von Elm Date: Fri, 15 Sep 2023 10:05:16 +0200 Subject: [PATCH] Fix sensors support --- include/lo2s/metric/sensors/recorder.hpp | 2 +- src/metric/sensors/recorder.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/lo2s/metric/sensors/recorder.hpp b/include/lo2s/metric/sensors/recorder.hpp index 9e000d89..1a8c0f12 100644 --- a/include/lo2s/metric/sensors/recorder.hpp +++ b/include/lo2s/metric/sensors/recorder.hpp @@ -41,7 +41,7 @@ class Recorder : public monitor::PollMonitor ~Recorder(); protected: - void monitor(int fd) override; + void monitor(WeakFd fd) override; std::string group() const override { diff --git a/src/metric/sensors/recorder.cpp b/src/metric/sensors/recorder.cpp index 36691569..dd30e6fe 100644 --- a/src/metric/sensors/recorder.cpp +++ b/src/metric/sensors/recorder.cpp @@ -139,7 +139,7 @@ Recorder::Recorder(trace::Trace& trace) event_ = std::make_unique(otf2::chrono::genesis(), metric_instance_); } -void Recorder::monitor([[maybe_unused]] int fd) +void Recorder::monitor([[maybe_unused]] WeakFd fd) { // update timestamp event_->timestamp(time::now());