1. fix bug in calculating SD of average traffic;