策略上报:拥堵联调完成

This commit is contained in:
tongchenfei
2020-08-28 15:17:03 +08:00
parent 7111be9e66
commit 5830d8cc42
2 changed files with 4 additions and 2 deletions

View File

@@ -70,7 +70,8 @@ class BlockStrategy(private val context: Context, private val apis: IMogoService
if (speed == 0F) {
stopFlag++
} else {
} else if (stopFlag < STOP_FLAG_THRESHOLD) {
// 如果本次计算期间stopFlag还没超过阈值就置为零如果超过阈值了说明本次计算期间存在超过阈值的停止次数就舍弃掉本次计算
stopFlag = 0
}