mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
don't loop too fast
This commit is contained in:
@@ -270,3 +270,7 @@ while True:
|
||||
|
||||
# If we made it this far, break out of the loop and query again.
|
||||
break
|
||||
|
||||
# Looping with no break causes the service to be killed by init.
|
||||
# This point is only reached if the query is empty, so sleep half a second before querying again.
|
||||
time.sleep(.5)
|
||||
|
||||
Reference in New Issue
Block a user