From 05a2268662f683b992244cc952125040e80a45ff Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Thu, 13 Oct 2022 10:57:17 +0200 Subject: [PATCH] Reset process stats when stopped --- process/limits.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/process/limits.go b/process/limits.go index 71ea7c0b..0c43b3ba 100644 --- a/process/limits.go +++ b/process/limits.go @@ -104,6 +104,8 @@ func (l *limiter) Stop() { l.proc.Stop() l.proc = nil + + l.reset() } func (l *limiter) ticker(ctx context.Context) {