Skip to content

Commit

Permalink
HOTFIX: Coordinate calculation typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmaurice committed Mar 5, 2024
1 parent b4f30c3 commit 84f008a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 84f008a

Please sign in to comment.