From 32fbe503b9189e5640144b379a0df8a9ebd36e4a Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Mon, 15 Jul 2019 17:12:55 +0800 Subject: [PATCH] refactor: format code Signed-off-by: MiaoWoo --- src/core/connect.ts | 3 ++- src/process/pow-process.ts | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/connect.ts b/src/core/connect.ts index eef084d..f45f428 100644 --- a/src/core/connect.ts +++ b/src/core/connect.ts @@ -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) { diff --git a/src/process/pow-process.ts b/src/process/pow-process.ts index e786b8e..55cafb2 100644 --- a/src/process/pow-process.ts +++ b/src/process/pow-process.ts @@ -114,7 +114,10 @@ global.BlockPump = undefined; var idIntervalPump = undefined; function StartHashPump(SetBlock) { - if (!global.BlockPump || global.BlockPump.BlockNum < SetBlock.BlockNum || global.BlockPump.MinerID !== SetBlock.MinerID || global.BlockPump.Percent !== SetBlock.Percent) { + if (!global.BlockPump + || global.BlockPump.BlockNum < SetBlock.BlockNum + || global.BlockPump.MinerID !== SetBlock.MinerID + || global.BlockPump.Percent !== SetBlock.Percent) { global.BlockPump = { BlockNum: SetBlock.BlockNum, RunCount: SetBlock.RunCount,