mirror of https://github.com/aristocratos/bpytop
Added: Sync clock to timer if timer = 1000ms
parent
9be7250a4a
commit
449be213e2
|
@ -2582,7 +2582,7 @@ class Collector:
|
||||||
debugged: bool = False
|
debugged: bool = False
|
||||||
try:
|
try:
|
||||||
while not cls.stopping:
|
while not cls.stopping:
|
||||||
if CONFIG.draw_clock: Box.draw_clock()
|
if CONFIG.draw_clock and CONFIG.update_ms != 1000: Box.draw_clock()
|
||||||
cls.collect_run.wait(0.1)
|
cls.collect_run.wait(0.1)
|
||||||
if not cls.collect_run.is_set():
|
if not cls.collect_run.is_set():
|
||||||
continue
|
continue
|
||||||
|
@ -2603,6 +2603,7 @@ class Collector:
|
||||||
if cls.draw_now and not Menu.active and not cls.collect_interrupt:
|
if cls.draw_now and not Menu.active and not cls.collect_interrupt:
|
||||||
if cls.use_draw_list: Draw.out(*draw_buffers)
|
if cls.use_draw_list: Draw.out(*draw_buffers)
|
||||||
else: Draw.out()
|
else: Draw.out()
|
||||||
|
if CONFIG.draw_clock and CONFIG.update_ms == 1000: Box.draw_clock()
|
||||||
cls.collect_idle.set()
|
cls.collect_idle.set()
|
||||||
cls.collect_done.set()
|
cls.collect_done.set()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue