Merge pull request #33 from Akasch/fix_cpu_usage

modeslive: fix hight CPU usage
This commit is contained in:
Junzi Sun
2018-11-27 17:16:57 +01:00
committed by GitHub

View File

@@ -3,6 +3,7 @@
from __future__ import print_function, division
import os
import sys
import time
import argparse
import curses
from threading import Lock
@@ -95,6 +96,7 @@ try:
try:
screen.update_data(acs)
screen.update()
time.sleep(0.02)
except KeyboardInterrupt:
raise
except: