From f970e22b97a1f330ea58e8779198d8491c2207bd Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Tue, 20 Apr 2021 18:00:07 +0800 Subject: [PATCH] procutils: WaitZombieLoop: less verbose iota --- pkg/util/procutils/zombie.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/util/procutils/zombie.go b/pkg/util/procutils/zombie.go index 240ca212dd..ebedc9afef 100644 --- a/pkg/util/procutils/zombie.go +++ b/pkg/util/procutils/zombie.go @@ -68,11 +68,11 @@ func WaitZombieLoop(ctx context.Context) { dataStr := string(data) items := strings.Split(dataStr, " ") const ( - idxPid = iota - idxName = iota - idxState = iota - idxPpid = iota - idxMinLen = iota + idxPid = iota + idxName + idxState + idxPpid + idxMinLen ) if len(items) < idxMinLen { log.Errorf("%s contains less than %d items: %s", statPath, idxMinLen, dataStr)