refactor: format code

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-07-15 17:12:55 +08:00
parent cdc11ab46b
commit 32fbe503b9
2 changed files with 6 additions and 2 deletions

View File

@@ -365,11 +365,12 @@ export default class CConnect extends CMessages {
} else {
}
global.ADD_TO_STAT("MAX:PING_TIME", DeltaTime)
if (!global.CAN_START)
if (!global.CAN_START) {
if (Times && Times.Count >= 1 && Times.AvgDelta <= CAN_START_TIME_AVG) {
global.ToLog("****************************************** CAN_START")
global.CAN_START = true
}
}
this.CheckDeltaTime(Data, Info.Node)
}
CheckCheckPoint(Data, Node) {