diff --git a/csminer.go b/csminer.go index b22d84b..ad95282 100644 --- a/csminer.go +++ b/csminer.go @@ -84,7 +84,7 @@ func MultiMain(s MachineStater, agent string) { crylog.Fatal(INVALID_EXCLUDE_FORMAT_MESSAGE, err) return } - if hr1 > 24 || hr1 < 0 || hr2 > 24 || hr1 < 0 { + if hr1 > 24 || hr1 < 0 || hr2 > 24 || hr2 < 0 { crylog.Fatal("INVALID_EXCLUDE_FORMAT_MESSAGE", ": XX and YY must each be between 0 and 24") return } diff --git a/minerlib/minerlib.go b/minerlib/minerlib.go index ebc7e45..ee7c024 100644 --- a/minerlib/minerlib.go +++ b/minerlib/minerlib.go @@ -267,7 +267,7 @@ func InitMiner(args *InitMinerArgs) *InitMinerResponse { r := &InitMinerResponse{} hr1 := args.ExcludeHourStart hr2 := args.ExcludeHourEnd - if hr1 > 24 || hr1 < 0 || hr2 > 24 || hr1 < 0 { + if hr1 > 24 || hr1 < 0 || hr2 > 24 || hr2 < 0 { r.Code = 3 r.Message = "exclude_hour_start and exclude_hour_end must each be between 0 and 24" return r