Browse Source

Alert if the new utilization is ge 1.

Joe Clarke 1 year ago
parent
commit
f6adbf0768
1 changed files with 1 additions and 1 deletions
  1. 1 1
      automation/services/dhcp_scope_watch.py

+ 1 - 1
automation/services/dhcp_scope_watch.py

@@ -136,7 +136,7 @@ if __name__ == "__main__":
         stats[scope] = {"perc": stat["util"]}
         if stat["util"] >= float(THRESHOLD):
             curr_state[scope] = stat["util"]
-            if scope not in prev_state or (scope in prev_state and stat["util"] - prev_state[scope] > 1.0):
+            if scope not in prev_state or (scope in prev_state and stat["util"] - prev_state[scope] >= 1.0):
                 spark.post_to_spark(
                     C.WEBEX_TEAM,
                     SPARK_ROOM,