修改返回的时间更客观

This commit is contained in:
eson 2019-01-02 03:03:28 +08:00
parent b54c0cf45c
commit 9d57144934

View File

@ -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--