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
|
||||
|
||||
-- iterate sessions
|
||||
-- iterate sessions and free any closed sessions
|
||||
apisessions.iterate_all()
|
||||
|
||||
-- free any closed sessions
|
||||
apisessions.free_all_closed()
|
||||
|
||||
-- update date and time string for main display
|
||||
if coord_comms.is_linked() then
|
||||
if renderer.ui_ready() then
|
||||
-- update clock used on main and flow monitors
|
||||
iocontrol.get_db().facility.ps.publish("date_time", os.date(smem.date_format))
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user