Skip to content

Commit

Permalink
Merge pull request #403 from VVelox/nfs-client-fix
Browse files Browse the repository at this point in the history
fix a off by one for nfsstat on new releases
  • Loading branch information
VVelox authored Apr 24, 2022
2 parents 3cd183c + dc9993c commit c12f320
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions snmp/fbsdnfsclient
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ while( defined( $nfsstatOutputA[$int] ) ){
$nfsstatOutputA[$int]=~s/^ +//;
$nfsstatOutputA[$int]=~s/ +/ /g;

if ( $int == 3 ){
if ( $int == 2 ){
(
$data{Getattr},
$data{Setattr},
Expand All @@ -109,7 +109,7 @@ while( defined( $nfsstatOutputA[$int] ) ){

}

if ( $int == 5 ){
if ( $int == 4 ){
(
$data{Rename},
$data{Link},
Expand All @@ -123,7 +123,7 @@ while( defined( $nfsstatOutputA[$int] ) ){

}

if ( $int == 7 ){
if ( $int == 6 ){
(
$data{Mknod},
$data{Fsstat},
Expand All @@ -134,7 +134,7 @@ while( defined( $nfsstatOutputA[$int] ) ){

}

if ( $int == 10 ){
if ( $int == 9 ){
(
$data{TimedOut},
$data{Invalid},
Expand All @@ -145,7 +145,7 @@ while( defined( $nfsstatOutputA[$int] ) ){

}

if ( $int == 13 ){
if ( $int == 12 ){
(
$data{AttrHits},
$data{AttrMisses},
Expand All @@ -159,7 +159,7 @@ while( defined( $nfsstatOutputA[$int] ) ){

}

if ( $int == 15 ){
if ( $int == 14 ){
(
$data{BioRLHits},
$data{BioRLMisses},
Expand Down

0 comments on commit c12f320

Please sign in to comment.