monitor: use signed value for factor and offset
The code was using size_t for factor and offset. For some fans the
offset could be negative, so it needs to use signed types.
This commit changes the offset type to int64_t.
Signed-off-by: Lei YU <mine260309@gmail.com>
Change-Id: I7443b00cd9f55ff0acb2fcc077bf2f5ba2b74395
diff --git a/monitor/tach_sensor.cpp b/monitor/tach_sensor.cpp
index 5494450..411bd16 100644
--- a/monitor/tach_sensor.cpp
+++ b/monitor/tach_sensor.cpp
@@ -75,7 +75,7 @@
size_t funcDelay,
const std::string& interface,
size_t factor,
- size_t offset,
+ int64_t offset,
size_t timeout,
const sdeventplus::Event& event) :
_bus(bus),