Skip to content

Commit 3c3bb17

Browse files
authored
[crmorch] Prevent exceededLogCounter from resetting when low and high values are equal (#2327)
* [crmorch] Prevent exceededLogCounter from resetting when low and high values are equal
1 parent bf4d890 commit 3c3bb17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orchagent/crmorch.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ void CrmOrch::checkCrmThresholds()
768768

769769
res.exceededLogCounter++;
770770
}
771-
else if ((utilization <= res.lowThreshold) && (res.exceededLogCounter > 0))
771+
else if ((utilization <= res.lowThreshold) && (res.exceededLogCounter > 0) && (res.highThreshold != res.lowThreshold))
772772
{
773773
SWSS_LOG_WARN("%s THRESHOLD_CLEAR for %s %u%% Used count %u free count %u",
774774
res.name.c_str(), threshType.c_str(), percentageUtil, cnt.usedCounter, cnt.availableCounter);

0 commit comments

Comments
 (0)