Browse Source

Only update the cache if we alert.

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

+ 1 - 0
automation/services/dhcp_scope_watch.py

@@ -137,6 +137,7 @@ if __name__ == "__main__":
         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):
+                curr_state[scope] = stat["util"]
                 spark.post_to_spark(
                     C.WEBEX_TEAM,
                     SPARK_ROOM,