Fix of a performance issue
This commit is contained in:
parent
ef294aa1c5
commit
65a33bf3c2
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,7 @@ def main():
|
||||||
from log import logsManager
|
from log import logsManager
|
||||||
import sys
|
import sys
|
||||||
import select
|
import select
|
||||||
|
import time
|
||||||
|
|
||||||
socketFile = '/etc/monutil/ip.socket'
|
socketFile = '/etc/monutil/ip.socket'
|
||||||
|
|
||||||
|
@ -49,6 +50,8 @@ def main():
|
||||||
|
|
||||||
while not (stopEvent.is_set() and not failureEvent.is_set()):
|
while not (stopEvent.is_set() and not failureEvent.is_set()):
|
||||||
|
|
||||||
|
time.sleep(1)
|
||||||
|
|
||||||
if dataBuffer:
|
if dataBuffer:
|
||||||
|
|
||||||
data = dataBuffer.pop(0)
|
data = dataBuffer.pop(0)
|
||||||
|
|
Loading…
Reference in a new issue