mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 18:38:30 +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)) {
|
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…
Add table
Add a link
Reference in a new issue