Merge pull request #33 from Akasch/fix_cpu_usage
modeslive: fix hight CPU usage
This commit is contained in:
commit
500c3ca9bd
@ -3,6 +3,7 @@
|
|||||||
from __future__ import print_function, division
|
from __future__ import print_function, division
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import time
|
||||||
import argparse
|
import argparse
|
||||||
import curses
|
import curses
|
||||||
from threading import Lock
|
from threading import Lock
|
||||||
@ -95,6 +96,7 @@ try:
|
|||||||
try:
|
try:
|
||||||
screen.update_data(acs)
|
screen.update_data(acs)
|
||||||
screen.update()
|
screen.update()
|
||||||
|
time.sleep(0.02)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
raise
|
raise
|
||||||
except:
|
except:
|
||||||
|
Loading…
Reference in New Issue
Block a user