mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
#460 cleanup and moved date and time update to be behind UI ready rather than linked
This commit is contained in:
parent
1504247b33
commit
eab1ffbe03
@ -141,14 +141,12 @@ function threads.thread__main(smem)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- iterate sessions
|
-- iterate sessions and free any closed sessions
|
||||||
apisessions.iterate_all()
|
apisessions.iterate_all()
|
||||||
|
|
||||||
-- free any closed sessions
|
|
||||||
apisessions.free_all_closed()
|
apisessions.free_all_closed()
|
||||||
|
|
||||||
-- update date and time string for main display
|
if renderer.ui_ready() then
|
||||||
if coord_comms.is_linked() then
|
-- update clock used on main and flow monitors
|
||||||
iocontrol.get_db().facility.ps.publish("date_time", os.date(smem.date_format))
|
iocontrol.get_db().facility.ps.publish("date_time", os.date(smem.date_format))
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -253,7 +251,7 @@ function threads.thread__render(smem)
|
|||||||
log.debug("render thread start")
|
log.debug("render thread start")
|
||||||
|
|
||||||
-- load in from shared memory
|
-- load in from shared memory
|
||||||
local crd_state = smem.crd_state
|
local crd_state = smem.crd_state
|
||||||
local render_queue = smem.q.mq_render
|
local render_queue = smem.q.mq_render
|
||||||
|
|
||||||
local last_update = util.time()
|
local last_update = util.time()
|
||||||
|
Loading…
Reference in New Issue
Block a user