correctly set the initial total
The previous attempt actually make the problem worse: 1. It didn't update the "last update" time. 2. It updated the accumulator but then didn't set the total. That meant that the _next_ update would count the bandwidth from two time periods. This change also reverts the changes to the test (the test was right, the code was wrong).
Showing
Please register or sign in to comment