Changeset 4d7f3db990db3affce9428be8e4b1b7ff1db7255

Show
Ignore:
Timestamp:
05/06/10 11:33:56 (5 years ago)
Author:
Jason Dixon <jdixon@omniti.com>
git-committer:
Jason Dixon <jdixon@omniti.com> 1273145636 +0000
git-parent:

[d5d97a43f1c381266e3033ef6c91f6ad4095deb0]

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

use doubles

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

Files:

Legend:

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

    rd5d97a4 r4d7f3db  
    6969            next unless /\w+/; 
    7070            if (/(\S+)\s+.*\n\s+\[\s+pkts\:\s+(\d+)\s+bytes\:\s+(\d+)\s+dropped\s+pkts\:\s+(\d+)\s+bytes\:\s+(\d+).*/) { 
    71                 $metrics{"${1}_pkts"} = [$2, 'i'], 
    72                 $metrics{"${1}_bytes"} = [$3, 'i'], 
    73                 $metrics{"${1}_drop_pkts"} = [$4, 'i'], 
    74                 $metrics{"${1}_drop_bytes"} = [$5, 'i'], 
     71                $metrics{"${1}_pkts"} = [$2, 'n'], 
     72                $metrics{"${1}_bytes"} = [$3, 'n'], 
     73                $metrics{"${1}_drop_pkts"} = [$4, 'n'], 
     74                $metrics{"${1}_drop_bytes"} = [$5, 'n'], 
    7575            } 
    7676        } 
  • lib/Core/Pf/Status.pm

    r9b3ba7b r4d7f3db  
    119119            if (/^\s+\w+.*/) { 
    120120                if (/^\s+current\sentries\s+(\d+)\s+/) { 
    121                     $metrics{'state_entries'} = [$1, 'i']; 
     121                    $metrics{'state_entries'} = [$1, 'n']; 
    122122                } else { 
    123123                    /^\s+(\S+)\s+(\d+).*/; 
    124                     $metrics{$keys{$1}} = [$2, 'i']; 
     124                    $metrics{$keys{$1}} = [$2, 'n']; 
    125125                } 
    126126            }