AlmostReliable / energymeter-forge

A Minecraft mod to easily measure your energy rates.
https://www.curseforge.com/minecraft/mc-mods/energymeter
GNU Lesser General Public License v3.0
6 stars 7 forks source link

No longer appears to show average use over time #6

Closed MuteTiefling closed 2 years ago

MuteTiefling commented 2 years ago

Bug Description

The block no longer appears to show average usage over time.

Expected Behavior

I set it to meter over 500 ms, for example, and I just don't see any value at all. Or it'll show a spike of usage, then go back to 0. The power use in this system is sporadic, like Industrial Foregoing machines that only draw power every couple seconds.

For example, laser drills draw 1000 FE every 3 seconds. I'd expect to be able to set the interval to 120 or so and see the average draw of 16.6 FE/t

Possible Solution

It seems like it's not properly caching the energy use over the period and/or not averaging that over the period

Reproduction

  1. Place Creative Power source
  2. Run that into the Energy Meter
  3. Run the power out to an Industrial Foregoing Laser Drill
  4. Set the Meter to input/output from the appropriate sides
  5. Set an interval of 120

Versions

energymeter-1.16.5-1.3.0