2015-05-13 15:41:24

by Scott Mayhew

[permalink] [raw]
Subject: [nfs-utils PATCH] mountstats: Fix the retrans counter output by the nfsstat command

Signed-off-by: Scott Mayhew <[email protected]>
---
tools/mountstats/mountstats.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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
--
1.9.3



2015-06-03 19:03:16

by Steve Dickson

[permalink] [raw]
Subject: Re: [nfs-utils PATCH] mountstats: Fix the retrans counter output by the nfsstat command



On 05/13/2015 11:41 AM, Scott Mayhew wrote:
> Signed-off-by: Scott Mayhew <[email protected]>
> ---
> 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
>