procutils: WaitZombieLoop: less verbose iota

This commit is contained in:
Yousong Zhou
2021-04-20 19:27:24 +08:00
parent 26013e66bf
commit f970e22b97
+5 -5
View File
@@ -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)