|
|
|
@ -83,6 +83,6 @@ func handlePanic(perr *error) { |
|
|
|
func sleepCronTime() { |
|
|
|
normal := time.Duration((float64(conf.TransCronInterval) - rand.Float64()) * float64(time.Second)) |
|
|
|
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) |
|
|
|
} |
|
|
|
|