mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-22 14:46:57 -04:00
Corrected reported size for PROC_MEMINFO systems
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@566 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
c0333c05e7
commit
12cf5ee9f6
1 changed files with 3 additions and 0 deletions
|
|
@ -80,6 +80,9 @@ main (int argc, char **argv)
|
|||
while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, fp)) {
|
||||
if (sscanf (input_buffer, " %s %lu %lu %lu", str, &total, &used, &free) == 4 &&
|
||||
strstr (str, "Swap")) {
|
||||
total = total / 1048576;
|
||||
used = used / 1048576;
|
||||
free = free / 1048576;
|
||||
#endif
|
||||
#ifdef HAVE_SWAP
|
||||
if (!allswaps && sun) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue