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:
parent
f5dd2be453
commit
b776bc2c9d
@ -108,8 +108,8 @@ my $memtotal = 0;
|
|||||||
while (my ($pid, $mem) = each(%$processes)) {
|
while (my ($pid, $mem) = each(%$processes)) {
|
||||||
$memtotal += $mem;
|
$memtotal += $mem;
|
||||||
}
|
}
|
||||||
|
$memtotal*=1024;
|
||||||
printf "memory.value %d\n", ($memtotal * 1024);
|
printf "memory.value $memtotal\n";
|
||||||
|
|
||||||
sub get_single
|
sub get_single
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user