Skip to content

Commit

Permalink
Fix bg_update_freq logic, using max instead of min.
Browse files Browse the repository at this point in the history
Thanks for noticing it, Mat!
  • Loading branch information
jthiltges authored and matyasselmeci committed Apr 30, 2024
1 parent f8e36c9 commit 7023c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def _verify_config(cfg):
#############################################################################
# Background update thread
# Run when the topology cache is 2/3 to expiration
bg_update_freq = min(global_data.topology.cache_lifetime*2/3, 60) # seconds
bg_update_freq = max(global_data.topology.cache_lifetime*2/3, 60) # seconds
bg_update_thread = threading.Thread()

def bg_update_run():
Expand Down

0 comments on commit 7023c1b

Please sign in to comment.