pcp
[Top] [All Lists]

[PATCH] Fix a pair of typos in the nfsclient PMDA

To: pcp@xxxxxxxxxxx
Subject: [PATCH] Fix a pair of typos in the nfsclient PMDA
From: Scott Mayhew <smayhew@xxxxxxxxxx>
Date: Fri, 28 Aug 2015 15:11:25 -0400
Delivered-to: pcp@xxxxxxxxxxx
These were causing the per-op execute counters to always be reported as
zero.

Signed-off-by: Scott Mayhew <smayhew@xxxxxxxxxx>
---
 src/pmdas/nfsclient/pmdanfsclient.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/pmdas/nfsclient/pmdanfsclient.pl 
b/src/pmdas/nfsclient/pmdanfsclient.pl
index a364c12..8344ec2 100644
--- a/src/pmdas/nfsclient/pmdanfsclient.pl
+++ b/src/pmdas/nfsclient/pmdanfsclient.pl
@@ -370,7 +370,7 @@ sub nfsclient_parse_proc_mountstats {
                         $h{$nfsinst}->{"nfsclient.ops.$opname.bytes_recv"} = 
$noval;
                         $h{$nfsinst}->{"nfsclient.ops.$opname.queue"} = $noval;
                         $h{$nfsinst}->{"nfsclient.ops.$opname.rtt"} = $noval;
-                        $h{$nfsinst}->{"nfsclinet.ops.$opname.execute"} = 
$noval;
+                        $h{$nfsinst}->{"nfsclient.ops.$opname.execute"} = 
$noval;
                }
 
                if ($line =~ /\tper-op statistics$/) {
@@ -388,7 +388,7 @@ sub nfsclient_parse_proc_mountstats {
                                 
$h{$nfsinst}->{"nfsclient.ops.$op_name.bytes_recv"},
                                 $h{$nfsinst}->{"nfsclient.ops.$op_name.queue"},
                                 $h{$nfsinst}->{"nfsclient.ops.$op_name.rtt"},
-                                
$h{$nfsinst}->{"nfsclinet.ops.$op_name.execute"}) =
+                                
$h{$nfsinst}->{"nfsclient.ops.$op_name.execute"}) =
                                        ($2, $3, $4, $5, $6, $7, $8, $9);
                        }
                }
-- 
1.9.3

<Prev in Thread] Current Thread [Next in Thread>