Changeset 24af467c88a036c69cdf6604e3b9984a139eff07

Show
Ignore:
Timestamp:
05/15/10 03:56:09 (4 years ago)
Author:
Jason Dixon <jdixon@omniti.com>
git-committer:
Jason Dixon <jdixon@omniti.com> 1273895769 +0000
git-parent:

[7c54048ca9a58d0809af322fa48bf5755ae76888]

git-author:
Jason Dixon <jdixon@omniti.com> 1273895769 +0000
Message:

int32 -> u_int64

git-svn-id: https://labs.omniti.com/resmon/branches/resmon2@384 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/Core/Memstat.pm

    r5e6e9e6 r24af467  
    110110 
    111111            foreach (keys %$syspages) { 
    112                 $metrics{"kstat_${_}"} = [int($syspages->{$_} * $pagesize / 1024), 'i'] unless ($_ eq 'class'); 
     112                $metrics{"kstat_${_}"} = [int($syspages->{$_} * $pagesize / 1024), 'L'] unless ($_ eq 'class'); 
    113113            } 
    114             $metrics{'kstat_cache_mem'} = int($kstat->{'zfs'}->{0}->{'arcstats'}->{'size'} / 1024)
     114            $metrics{'kstat_cache_mem'} = [int($kstat->{'zfs'}->{0}->{'arcstats'}->{'size'} / 1024), 'L']
    115115            return \%metrics; 
    116116        } else { 
     
    118118            if ($output =~ /.*cs\s+us\s+sy\s+id\n\s+\d+\s+\d+\s+\d+\s+(\d+)\s+(\d+).*/) { 
    119119                return { 
    120                     'actv_mem' => [$1, 'i'], 
    121                     'free_mem' => [$2, 'i'] 
     120                    'actv_mem' => [$1, 'L'], 
     121                    'free_mem' => [$2, 'L'] 
    122122                }; 
    123123            } else {