diff mbox

[nfs-utils] mountstats: Fix the retrans counter output by the nfsstat command

Message ID 1431531681-64765-1-git-send-email-smayhew@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Scott Mayhew May 13, 2015, 3:41 p.m. UTC
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
---
 tools/mountstats/mountstats.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Steve Dickson June 3, 2015, 7:03 p.m. UTC | #1
On 05/13/2015 11:41 AM, Scott Mayhew wrote:
> Signed-off-by: Scott Mayhew <smayhew@redhat.com>
> ---
>  tools/mountstats/mountstats.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
Committed... 

steved.

> 
> diff --git a/tools/mountstats/mountstats.py b/tools/mountstats/mountstats.py
> index 38943eb..011bb42 100644
> --- a/tools/mountstats/mountstats.py
> +++ b/tools/mountstats/mountstats.py
> @@ -474,7 +474,7 @@ class DeviceData:
>          # authrefresh stats don't actually get captured in
>          # /proc/self/mountstats, so we fudge it here
>          authrefrsh = sends
> -        return (sends, trans, authrefrsh)
> +        return (sends, retrans, authrefrsh)
>  
>      def display_nfsstat_stats(self):
>          """Pretty-print nfsstat-style stats
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/tools/mountstats/mountstats.py b/tools/mountstats/mountstats.py
index 38943eb..011bb42 100644
--- a/tools/mountstats/mountstats.py
+++ b/tools/mountstats/mountstats.py
@@ -474,7 +474,7 @@  class DeviceData:
         # authrefresh stats don't actually get captured in
         # /proc/self/mountstats, so we fudge it here
         authrefrsh = sends
-        return (sends, trans, authrefrsh)
+        return (sends, retrans, authrefrsh)
 
     def display_nfsstat_stats(self):
         """Pretty-print nfsstat-style stats