We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 003c0fc commit 0d3f24eCopy full SHA for 0d3f24e
1 file changed
src/runtime_src/core/common/sensor.cpp
@@ -215,7 +215,7 @@ read_data_driven_electrical(const std::vector<xq::sdm_sensor_info::data_type>& c
215
// iterate over power data, store to ptree by converting to watts.
216
for (const auto& tmp : power) {
217
if (boost::iequals(tmp.label, "Total Power")) {
218
- if ((tmp.input != std::numeric_limits<decltype(xq::sdm_sensor_info::data_type::input)>::max()) && (tmp.input != 0))
+ if (tmp.input != std::numeric_limits<decltype(xq::sdm_sensor_info::data_type::input)>::max())
219
bd_power = xrt_core::utils::format_base10_shiftdown(tmp.input, tmp.unitm, 3);
220
bd_max_power = xrt_core::utils::format_base10_shiftdown(tmp.max, tmp.unitm, 3);
221
}
0 commit comments