mirror of
https://github.com/offen/docker-volume-backup.git
synced 2025-10-30 08:56:19 +08:00
Changed formatting of jittering log message
This commit is contained in:
parent
bbe59b672e
commit
ed50c21f22
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ func runScript(c *Config) (err error) {
|
||||||
max := s.c.BackupJitter
|
max := s.c.BackupJitter
|
||||||
delay := time.Duration(rand.Int63n(int64(max) + 1))
|
delay := time.Duration(rand.Int63n(int64(max) + 1))
|
||||||
if delay > 0 {
|
if delay > 0 {
|
||||||
s.logger.Info("applying startup jitter", "delay", delay)
|
s.logger.Info(fmt.Sprintf("Applying startup jitter of %v", delay))
|
||||||
time.Sleep(delay)
|
time.Sleep(delay)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue