|
|
@ -371,25 +371,25 @@ func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) {
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ret.Sout = value * 4 * 1024
|
|
|
|
ret.Sout = value * 4 * 1024
|
|
|
|
case "pgpgIn":
|
|
|
|
case "pgpgin":
|
|
|
|
value, err := strconv.ParseUint(fields[1], 10, 64)
|
|
|
|
value, err := strconv.ParseUint(fields[1], 10, 64)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ret.PgIn = value * 4 * 1024
|
|
|
|
ret.PgIn = value * 4 * 1024
|
|
|
|
case "pgpgOut":
|
|
|
|
case "pgpgout":
|
|
|
|
value, err := strconv.ParseUint(fields[1], 10, 64)
|
|
|
|
value, err := strconv.ParseUint(fields[1], 10, 64)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ret.PgOut = value * 4 * 1024
|
|
|
|
ret.PgOut = value * 4 * 1024
|
|
|
|
case "pgFault":
|
|
|
|
case "pgfault":
|
|
|
|
value, err := strconv.ParseUint(fields[1], 10, 64)
|
|
|
|
value, err := strconv.ParseUint(fields[1], 10, 64)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ret.PgFault = value * 4 * 1024
|
|
|
|
ret.PgFault = value * 4 * 1024
|
|
|
|
case "pgMajFault":
|
|
|
|
case "pgmajfault":
|
|
|
|
value, err := strconv.ParseUint(fields[1], 10, 64)
|
|
|
|
value, err := strconv.ParseUint(fields[1], 10, 64)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|