Skip to content

Commit 0d3f24e

Browse files
authored
Include 0 Watt Reading (#9706)
Signed-off-by: Ryan Chane <rchane@xilinx.com>
1 parent 003c0fc commit 0d3f24e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/runtime_src/core/common/sensor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ read_data_driven_electrical(const std::vector<xq::sdm_sensor_info::data_type>& c
215215
// iterate over power data, store to ptree by converting to watts.
216216
for (const auto& tmp : power) {
217217
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))
218+
if (tmp.input != std::numeric_limits<decltype(xq::sdm_sensor_info::data_type::input)>::max())
219219
bd_power = xrt_core::utils::format_base10_shiftdown(tmp.input, tmp.unitm, 3);
220220
bd_max_power = xrt_core::utils::format_base10_shiftdown(tmp.max, tmp.unitm, 3);
221221
}

0 commit comments

Comments
 (0)