mirror of https://github.com/craigerl/aprsd.git
Make registry thread sleep
This patch adds a required sleep of 1 second in each registry thread loop to prevent runaway cpu usage
This commit is contained in:
parent
44a98850c9
commit
5d3f42f411
|
@ -1,4 +1,5 @@
|
||||||
import logging
|
import logging
|
||||||
|
import time
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
import requests
|
import requests
|
||||||
|
@ -50,4 +51,5 @@ class APRSRegistryThread(aprsd_threads.APRSDThread):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
LOG.error(f"Failed to send registry info: {e}")
|
LOG.error(f"Failed to send registry info: {e}")
|
||||||
|
|
||||||
|
time.sleep(1)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue