Browse Source

fix log

pull/378/head
yedf2 3 years ago
parent
commit
907dbb4b58
  1. 2
      dtmsvr/cron.go

2
dtmsvr/cron.go

@ -83,6 +83,6 @@ func handlePanic(perr *error) {
func sleepCronTime() { func sleepCronTime() {
normal := time.Duration((float64(conf.TransCronInterval) - rand.Float64()) * float64(time.Second)) normal := time.Duration((float64(conf.TransCronInterval) - rand.Float64()) * float64(time.Second))
interval := dtmimp.If(CronForwardDuration > 0, 1*time.Millisecond, normal).(time.Duration) interval := dtmimp.If(CronForwardDuration > 0, 1*time.Millisecond, normal).(time.Duration)
logger.Debugf("sleeping for %v milli", interval/time.Microsecond) logger.Debugf("sleeping for %v", interval)
time.Sleep(interval) time.Sleep(interval)
} }

Loading…
Cancel
Save