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