Fix tidy build
This appears to be something tidy is wrong about. The suggestion of
adding math to the struct initializers appears to not compile.
Move the calculation of hysteresisTrigger and hysteresisPublish into the
constructor body itself to avoid the warning.
Change-Id: I833fd12966c69c0e081692d6d40ba0cf1805ead1
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/src/intel-cpu/IntelCPUSensor.cpp b/src/intel-cpu/IntelCPUSensor.cpp
index 5c10967..46ca8ee 100644
--- a/src/intel-cpu/IntelCPUSensor.cpp
+++ b/src/intel-cpu/IntelCPUSensor.cpp
@@ -59,8 +59,7 @@
objServer(objectServer), inputDev(io), waitTimer(io),
nameTcontrol("Tcontrol CPU" + std::to_string(cpuId)), path(path),
privTcontrol(std::numeric_limits<double>::quiet_NaN()),
- dtsOffset(dtsOffset), show(show), pollTime(IntelCPUSensor::sensorPollMs)
-
+ dtsOffset(dtsOffset), show(show)
{
if (show)
{