mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
procutils: WaitZombieLoop: less verbose iota
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user