Utilization Monitor Blargh


Displays the utilization percentage of factories, miners, labs, furnaces, boilers, generators, and reactors.

8 months ago
0.18 - 1.1
7.49K

b [Fixed] -0% Usage

2 years ago

With the latest update, idle machines sometimes report -0% utilization instead of 0%. While a minor bug, it would be nice if it took the absolute value of -0 to report 0% again (or a similar method).

2 years ago
(updated 2 years ago)

I saw that happening on occasion with another game as well. I'm using the flib library to do a clamp, and calling that library's math.clamp(-0, 0, 100) returns -0 instead of a somewhat expected 0. However, mathematically, -0 == 0.

I agree it's ugly - I posted an issue to to flib -https://github.com/factoriolib/flib/issues/43 - waiting to see what that author comes back with. If it's a "won't fix" or takes a while, I'll fix it in UMB with a math.abs call on the next version bump.

1 year, 11 months ago

They did fix it in flib, but it'll be a little bit for that fix to go live. I patched it in 0.8.14.

New response