mirror of
https://github.com/status-im/go-watchdog.git
synced 2025-01-14 19:44:25 +00:00
add log warning.
This commit is contained in:
parent
fcf668bfe2
commit
a4d30cafdc
@ -180,6 +180,7 @@ func HeapDriven(limit uint64, policyCtor PolicyCtor) (err error, stopFn func())
|
|||||||
heapMarked := uint64(float64(memstats.NextGC) / (1 + float64(currGOGC)/100))
|
heapMarked := uint64(float64(memstats.NextGC) / (1 + float64(currGOGC)/100))
|
||||||
if heapMarked == 0 {
|
if heapMarked == 0 {
|
||||||
// this shouldn't happen, but just in case; avoiding a div by 0.
|
// this shouldn't happen, but just in case; avoiding a div by 0.
|
||||||
|
Logger.Warnf("heap-driven watchdog: inferred zero heap marked; skipping evaluation")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user