1. fix bug in computing SD of average traffic;