health_metric: avoid signal generation for init properties
Avoid signal generation for properties initialization for health
metrics.
Change-Id: If1d7f89a01f40022e6ed7073548291cf5f965b84
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/health_metric.cpp b/health_metric.cpp
index 2c82fea..ed41fd1 100644
--- a/health_metric.cpp
+++ b/health_metric.cpp
@@ -88,7 +88,7 @@
ValueIntf::minValue(0.0, true);
}
}
- ValueIntf::value(std::numeric_limits<double>::quiet_NaN());
+ ValueIntf::value(std::numeric_limits<double>::quiet_NaN(), true);
using bound_map_t = std::map<ThresholdIntf::Bound, double>;
std::map<ThresholdIntf::Type, bound_map_t> thresholds;
@@ -108,7 +108,7 @@
threshold->second.emplace(bound, value.value);
}
}
- ThresholdIntf::value(thresholds);
+ ThresholdIntf::value(thresholds, true);
}
void HealthMetric::checkThreshold(ThresholdIntf::Type type,