The injected energy and rate were added to the global array within the
loop over the blocks, essentially multiplying the energy by the number
of blocks for each process. This fix moves the injected energy
accounting out of the loop over the blocks.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>