implement patch from #424 improving ('fixing') our average latency calculation. Closes #424.