refactor: format code
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
cdc11ab46b
commit
32fbe503b9
@ -365,11 +365,12 @@ export default class CConnect extends CMessages {
|
|||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
global.ADD_TO_STAT("MAX:PING_TIME", DeltaTime)
|
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) {
|
if (Times && Times.Count >= 1 && Times.AvgDelta <= CAN_START_TIME_AVG) {
|
||||||
global.ToLog("****************************************** CAN_START")
|
global.ToLog("****************************************** CAN_START")
|
||||||
global.CAN_START = true
|
global.CAN_START = true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.CheckDeltaTime(Data, Info.Node)
|
this.CheckDeltaTime(Data, Info.Node)
|
||||||
}
|
}
|
||||||
CheckCheckPoint(Data, Node) {
|
CheckCheckPoint(Data, Node) {
|
||||||
|
@ -114,7 +114,10 @@ global.BlockPump = undefined;
|
|||||||
var idIntervalPump = undefined;
|
var idIntervalPump = undefined;
|
||||||
|
|
||||||
function StartHashPump(SetBlock) {
|
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 = {
|
global.BlockPump = {
|
||||||
BlockNum: SetBlock.BlockNum,
|
BlockNum: SetBlock.BlockNum,
|
||||||
RunCount: SetBlock.RunCount,
|
RunCount: SetBlock.RunCount,
|
||||||
|
Loading…
Reference in New Issue
Block a user