webui: Fix incorrectly calculated average value, must divide by current number of samples, not by the max number of samples