mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-24 18:07:20 +00:00
Fixed overflow with >4Gb memory
This commit is contained in:
parent
f5dd2be453
commit
b776bc2c9d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue