Compare commits
1 commit
2cfea46852
...
a16dc6b73e
Author | SHA1 | Date | |
---|---|---|---|
|
a16dc6b73e |
|
@ -81,7 +81,7 @@ func (d *daemon) process(ctx context.Context) {
|
||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
var elapsed time.Duration = 0
|
var elapsed time.Duration = 0
|
||||||
if !lastRun.IsZero(){
|
if !lastRun.IsZero() {
|
||||||
elapsed = now.Sub(lastRun)
|
elapsed = now.Sub(lastRun)
|
||||||
if elapsed > periodGrace {
|
if elapsed > periodGrace {
|
||||||
klog.Warningf("Processing loop lag: took %s, want %s", elapsed, period)
|
klog.Warningf("Processing loop lag: took %s, want %s", elapsed, period)
|
||||||
|
|
Loading…
Reference in a new issue