From b776bc2c9de877d4b2e2920f10963c1cf82efba4 Mon Sep 17 00:00:00 2001 From: Flanker Date: Fri, 23 Jul 2010 06:12:31 +0200 Subject: [PATCH] Fixed overflow with >4Gb memory --- plugins/other/snmp_memory | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/other/snmp_memory b/plugins/other/snmp_memory index 81354840..8f5f4ffa 100755 --- a/plugins/other/snmp_memory +++ b/plugins/other/snmp_memory @@ -108,8 +108,8 @@ my $memtotal = 0; while (my ($pid, $mem) = each(%$processes)) { $memtotal += $mem; } - -printf "memory.value %d\n", ($memtotal * 1024); +$memtotal*=1024; +printf "memory.value $memtotal\n"; sub get_single {