fixed QPS caculate wrong