src/main/java/dev/rlnt/energymeter/meter/MeterTile.java
private void calculateFlow() {
        if (averageCount != 0) {
            float oldTransferRate = transferRate;
            transferRate = (float) averageRate / averageCount;
            if (oldTransferRate != transferRate) syncData(SyncFlags.TRANSFER_RATE);
        }

        if (transferRate > 0) {
            updateStatus(STATUS.TRANSFERRING);
        } else {
            updateStatus(STATUS.CONNECTED);
        }

        lastAverageRate = averageRate;
    }
/**
     * Calculates the flow rate depending on the energy received within {@value REFRESH_RATE} ticks.
     * Updates the status accordingly.
     */
Calculates the flow rate depending on the energy received within  REFRESH_RATE ticks.
Updates the status accordingly.
Calculates the flow rate depending on the energy received within REFRESH_RATE ticks . Updates the status accordingly .
private void calculateFlow() {
        if (averageCount != 0) {
            float oldTransferRate = transferRate;
            transferRate = (float) averageRate / averageCount;
            if (oldTransferRate != transferRate) syncData(SyncFlags.TRANSFER_RATE);
        }
        if (transferRate > 0) {
            updateStatus(STATUS.TRANSFERRING);
        } else {
            updateStatus(STATUS.CONNECTED);
        }
        lastAverageRate = averageRate;
    }
private void calculateFlow ( ) { if ( averageCount != 0 ) { float oldTransferRate = transferRate ; transferRate = ( float ) averageRate / averageCount ; if ( oldTransferRate != transferRate ) syncData ( SyncFlags . TRANSFER_RATE ) ; } if ( transferRate > 0 ) { updateStatus ( STATUS . TRANSFERRING ) ; } else { updateStatus ( STATUS . CONNECTED ) ; } lastAverageRate = averageRate ; }
Calculates the flow rate depending on the energy received within {@value REFRESH_RATE} ticks.
Calculates the flow rate depending on the energy received within { @value REFRESH_RATE } ticks .