2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Fixed overflow with >4Gb memory

This commit is contained in:
Flanker 2010-07-23 06:12:31 +02:00 committed by Steve Schnepp
parent f5dd2be453
commit b776bc2c9d

View File

@ -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
{