Skip to content

Commit 1df10e1

Browse files
committed
fix(plc4go): set last loop time to avoid wait cycle cpu burn
1 parent 1fea63e commit 1df10e1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

plc4go/spi/default/DefaultCodec.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ mainLoop:
401401
workerLog.Debug().Stringer("processingTime", processingTime).Msg("no need to sleep") // we use stringer instead of Dur to have it a bit more readable
402402
}
403403
workerLog.Trace().Msg("receive mainloop cycle")
404+
lastLoopTime = time.Now()
404405

405406
// Guard against empty expectations
406407
m.expectationsChangeMutex.RLock()

0 commit comments

Comments
 (0)