smoothing diag_fps results

just launch this script once and fetch global var FPS_AVG insteed of
diag_fps