Skip to content

Commit

Permalink
ntcip: Don't record duplicate temps in DMS status
Browse files Browse the repository at this point in the history
  • Loading branch information
DougLau committed Dec 12, 2024
1 parent affb5ec commit 1201c87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ private void pollTemp(CommMessage mess, String key, MIB1203 min_obj,
JSONArray temps = new JSONArray();
if (mn_valid)
temps.put(mn);
if (mx_valid)
if (mx_valid && (mx > mn || !mn_valid))
temps.put(mx);
if (mn_valid || mx_valid)
putStatus(key, temps);
Expand Down

0 comments on commit 1201c87

Please sign in to comment.