Fix #1589
This commit is contained in:
parent
dc7574b99a
commit
d77a2dd4a5
|
@ -139,12 +139,14 @@ sub manage_selection {
|
||||||
total => $results->{$oid_memTotalReal64},
|
total => $results->{$oid_memTotalReal64},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if ($results->{$oid_memTotalVirtual64} > $results->{$oid_memTotalReal64}) {
|
||||||
$self->{swap} = {
|
$self->{swap} = {
|
||||||
prct_used => ($results->{$oid_memActiveVirtual64} - $results->{$oid_memActiveReal64}) * 100 / ($results->{$oid_memTotalVirtual64} - $results->{$oid_memTotalReal64}),
|
prct_used => ($results->{$oid_memActiveVirtual64} - $results->{$oid_memActiveReal64}) * 100 / ($results->{$oid_memTotalVirtual64} - $results->{$oid_memTotalReal64}),
|
||||||
used => $results->{$oid_memActiveVirtual64} - $results->{$oid_memActiveReal64},
|
used => $results->{$oid_memActiveVirtual64} - $results->{$oid_memActiveReal64},
|
||||||
free => $results->{$oid_memTotalVirtual64} - $results->{$oid_memTotalReal64} - ($results->{$oid_memActiveVirtual64} - $results->{$oid_memActiveReal64}),
|
free => $results->{$oid_memTotalVirtual64} - $results->{$oid_memTotalReal64} - ($results->{$oid_memActiveVirtual64} - $results->{$oid_memActiveReal64}),
|
||||||
total => $results->{$oid_memTotalVirtual64} - $results->{$oid_memTotalReal64}
|
total => $results->{$oid_memTotalVirtual64} - $results->{$oid_memTotalReal64}
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
$self->{malloc} = { failed_mallocs => $results->{$oid_fwKmemFailedAlloc} };
|
$self->{malloc} = { failed_mallocs => $results->{$oid_fwKmemFailedAlloc} };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue