movingAverage of what? Better name would include what this is a moving average of... I realize from the code and your description that this is for bytes received by agent but what if we want to start tracking packets received also?