From 84f008a961582a6f6be585e721e32fa6deff47b5 Mon Sep 17 00:00:00 2001 From: Sonic Lucas Maurice Date: Tue, 5 Mar 2024 00:50:12 -0500 Subject: [PATCH] HOTFIX: Coordinate calculation typo. --- satisfactory-exporter/exporter/factory_building_collector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/satisfactory-exporter/exporter/factory_building_collector.go b/satisfactory-exporter/exporter/factory_building_collector.go index cd8f6a9..1ad2286 100644 --- a/satisfactory-exporter/exporter/factory_building_collector.go +++ b/satisfactory-exporter/exporter/factory_building_collector.go @@ -39,7 +39,7 @@ func (c *FactoryBuildingCollector) Collect(ch chan<- prometheus.Metric) { x := building.Location.X*0.000000117118912 + 0.03804908 y := -building.Location.Y*0.000000117118912 - 0.0439383731 z := building.Location.Z - gh := geohash.EncodeAuto(building.Location.X*0.000000117118912+0.03804908, -building.Location.Y*0.000000117118912-0.0439383731) + gh := geohash.EncodeAuto(y, x) ch <- prometheus.MustNewConstMetric( MachineItemsProducedPerMin,