Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

Commit

Permalink
Moved it to be inside the method call
Browse files Browse the repository at this point in the history
  • Loading branch information
Reflex18 committed Apr 4, 2024
1 parent 9996a88 commit f05aeae
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -902,15 +902,15 @@ private long getAvgOut() {
return sum / Math.max(energyOutputValues.size(), 1);
}

// Caching avgin and avgout
double avgIn = getAvgIn();
double avgOut = getAvgOut();

@Override
public String[] getInfoData() {
NumberFormat nf = NumberFormat.getNumberInstance();
int secInterval = DURATION_AVERAGE_TICKS / 20;

// Caching avgin and avgout
double avgIn = getAvgIn();
double avgOut = getAvgOut();

final ArrayList<String> ll = new ArrayList<>();
ll.add(EnumChatFormatting.YELLOW + "Operational Data:" + EnumChatFormatting.RESET);
ll.add("EU Stored (exact): " + nf.format(stored) + "EU");
Expand Down

0 comments on commit f05aeae

Please sign in to comment.