[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <ce6074bd-2e72-25ef-5827-6336c081b66c@chandergovind.org>
Date: Wed, 12 Jul 2023 10:47:18 +0530
From: Chander Govindarajan <mail@...ndergovind.org>
To: netdev@...r.kernel.org
Subject: [PATCH iproute2] misc/ifstat: fix incorrect output data in json mode
Due to this bug, in json mode (with the -j flag), the output was
always in absolute mode (as if passing in the -a flag) and not in
relative mode.
Signed-off-by: ChanderG <mail@...ndergovind.org>
---
misc/ifstat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/misc/ifstat.c b/misc/ifstat.c
index f6f9ba50..6c76fa15 100644
--- a/misc/ifstat.c
+++ b/misc/ifstat.c
@@ -569,7 +569,7 @@ static void dump_incr_db(FILE *fp)
continue;
if (jw)
- print_one_json(jw, n, n->val);
+ print_one_json(jw, n, vals);
else
print_one_if(fp, n, vals);
}
--
2.36.1.299.gab336e8f1c
Powered by blists - more mailing lists