Add platform speed and weight metrics

clusterio_statistics_exporter_platform_speed
clusterio_statistics_exporter_platform_weight
This commit is contained in:
Danielv123 committed 2024-12-02 21:35:25 +00:00
1 parent 9464541d61
commit 8e22de9d2d
3 files changed
+41 -3

No files matched your search

@@ -49,7 +49,9 @@ function statistics_exporter.export()
for _, platform in pairs(force.platforms) do
stats.platforms[platform.name] = {
force = force.name,
surface = platform.surface.name
surface = platform.surface.name,
speed = platform.speed,
weight = platform.weight,
}
end
end