修改返回的时间更客观
This commit is contained in:
parent
b54c0cf45c
commit
9d57144934
|
@ -304,7 +304,7 @@ func (cron *Crontab) intervalCalculateNextTime(now time.Time) {
|
|||
|
||||
}
|
||||
|
||||
fmt.Println(time.Now(), cron.uid.String(), "success:", cron.trueCount, " wait:", isecond)
|
||||
fmt.Println(time.Now().Format("01-02 15:04:05"), cron.uid.String(), "success:", cron.trueCount, " wait:", isecond)
|
||||
|
||||
} else {
|
||||
|
||||
|
@ -322,7 +322,7 @@ func (cron *Crontab) intervalCalculateNextTime(now time.Time) {
|
|||
}
|
||||
}
|
||||
|
||||
fmt.Println(time.Now(), cron.uid.String(), "fail:", cron.failCount, " wait:", isecond)
|
||||
fmt.Println(time.Now().Format("01-02 15:04:05"), cron.uid.String(), "fail:", cron.failCount, " wait:", isecond)
|
||||
}
|
||||
|
||||
iv.Count--
|
||||
|
|
Loading…
Reference in New Issue
Block a user