mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-23 00:03:33 +00:00
Reduce CPU, Disk and Memory usage
This commit is contained in:
parent
9ef0ce689d
commit
42bbd7439e
1 changed files with 2 additions and 6 deletions
|
@ -39,7 +39,6 @@ if __name__ == '__main__':
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def daemon():
|
def daemon():
|
||||||
threading.Timer(1.0, daemon).start()
|
|
||||||
if os.path.exists(stopfile):
|
if os.path.exists(stopfile):
|
||||||
try:
|
try:
|
||||||
os.remove(stopfile)
|
os.remove(stopfile)
|
||||||
|
@ -57,12 +56,9 @@ if __name__ == '__main__':
|
||||||
else:
|
else:
|
||||||
start_bazarr()
|
start_bazarr()
|
||||||
|
|
||||||
|
|
||||||
daemon()
|
|
||||||
|
|
||||||
start_bazarr()
|
start_bazarr()
|
||||||
|
|
||||||
|
|
||||||
# Keep the script running forever.
|
# Keep the script running forever.
|
||||||
while True:
|
while True:
|
||||||
time.sleep(0.001)
|
daemon()
|
||||||
|
time.sleep(1)
|
||||||
|
|
Loading…
Reference in a new issue