Fixes
This commit is contained in:
@@ -6,7 +6,7 @@ require("power-stats")
|
||||
require("logistic-network-stats")
|
||||
|
||||
tickInterval = tonumber(settings.global["factorio-metrics-exporter-tick-interval"].value) or 300
|
||||
udpAddress = tonumber(settings.startup["factorio-metrics-exporter-udp-address"].value) or 52555
|
||||
udpAddress = 52555
|
||||
isInitialized = false
|
||||
sendIndex = 0
|
||||
|
||||
|
||||
BIN
factorio-metrics-exporter_0.1.1.zip
Normal file
BIN
factorio-metrics-exporter_0.1.1.zip
Normal file
Binary file not shown.
BIN
factorio-metrics-exporter_0.1.2.zip
Normal file
BIN
factorio-metrics-exporter_0.1.2.zip
Normal file
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "factorio-metrics-exporter",
|
||||
"version": "0.1.1",
|
||||
"version": "0.1.2",
|
||||
"title": "Prometheus Metrics Exporter",
|
||||
"author": "Jan Grießhaber",
|
||||
"contact": "jan@griesshaber.systems",
|
||||
|
||||
@@ -55,8 +55,8 @@ function UpdateLabInfos()
|
||||
else
|
||||
labBase = labBaseSpeed
|
||||
end
|
||||
local labSpeed = (labBase + (labBase * game.forces["player"].laboratory_speed_modifier)) * lab.effects.speed
|
||||
totalSpeed = totalSpeed + (labSpeed* (1+lab.effects.productivity))
|
||||
local labSpeed = (labBase + (labBase * game.forces["player"].laboratory_speed_modifier)) * (lab.effects.speed or 1)
|
||||
totalSpeed = totalSpeed + (labSpeed* (1+(lab.effects.productivity or 0)))
|
||||
--local labSpeed = labBaseSpeed * lab.effects.speed
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user