metric: fix average bitrate calculation