mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
use os.clock rather than unix time for control
This commit is contained in:
parent
65d43d55c7
commit
612a06ba98
@ -337,7 +337,7 @@ function facility.new(num_reactors, cooling_conf)
|
||||
local avg_inflow = self.avg_inflow.compute()
|
||||
local avg_outflow = self.avg_outflow.compute()
|
||||
|
||||
local now = util.time_s()
|
||||
local now = os.clock()
|
||||
|
||||
local state_changed = self.mode ~= self.last_mode
|
||||
local next_mode = self.mode
|
||||
|
Loading…
Reference in New Issue
Block a user