update new compile so it doesent force updates
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
local service={}
|
||||
local fs=require("fs")
|
||||
local reactor=syscall.open("/dev/raw/by-type/fissionReactorLogicAdapter/1","rw")
|
||||
local boiler=syscall.open("/dev/raw/by-type/boilerValve/1")
|
||||
local boiler=syscall.open("/dev/raw/by-type/boilerValve/1","rw")
|
||||
local exit=false
|
||||
local temp,fuel,waste,hcool,cool,dmg = 0,0,0,0,0,0
|
||||
function service.dmgservice()
|
||||
@@ -12,24 +12,33 @@ end
|
||||
|
||||
function service.wasteservice()
|
||||
while not exit do
|
||||
|
||||
waste=syscall.devctl(reactor, "getWastePercent")
|
||||
end
|
||||
end
|
||||
|
||||
function service.coolantservice()
|
||||
while not exit do
|
||||
|
||||
hcool=syscall.devctl(reactor, "getHeatedCoolantPercent")
|
||||
cool=syscall.devctl(reactor, "getHeatedCoolantPercent")
|
||||
end
|
||||
end
|
||||
|
||||
function service.extraservice()
|
||||
while not exit do
|
||||
|
||||
syscall.exit()
|
||||
end
|
||||
end
|
||||
|
||||
function service.storeservice()
|
||||
while not exit do
|
||||
|
||||
syscall.exit()
|
||||
end
|
||||
end
|
||||
|
||||
for name, func in pairs(service) do
|
||||
syscall.spawn(func, name)
|
||||
end
|
||||
|
||||
while true do
|
||||
print(temp,fuel,hcool,cool,dmg,waste)
|
||||
end
|
||||
Reference in New Issue
Block a user