]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/tc_util.c
tc: action: fix time values output in JSON format
authorRoman Mashak <mrv@mojatatu.com>
Wed, 20 May 2020 00:59:44 +0000 (20:59 -0400)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 20 May 2020 04:19:04 +0000 (21:19 -0700)
commitdb35e411ec17bf9da67f22f995fe1e8d5edcda98
tree87ca6da5e34a845ceea3ec36cc26bff2effcd03d
parent1c7aa121045c5e4de17b7e8a909c158c975b8578
tc: action: fix time values output in JSON format

Report tcf_t values in seconds, not jiffies, in JSON format as it is now
for stdout.

v2: use PRINT_ANY, drop the useless casts and fix the style (Stephen Hemminger)

Fixes: 2704bd625583 ("tc: jsonify actions core")
Cc: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/tc_util.c