]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
tc: report time an action was first used
authorRoman Mashak <mrv@mojatatu.com>
Thu, 28 May 2020 01:22:47 +0000 (21:22 -0400)
committerDavid Ahern <dsahern@gmail.com>
Sun, 31 May 2020 22:51:19 +0000 (22:51 +0000)
Have print_tm() dump firstuse value along with install, lastuse
and expires.

v2: Resubmit after 'master' merged into next

Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
tc/tc_util.c

index fd5fcb242b64214c0e498ea2c1cbc884760b00d0..b7ff911b63edac989528ea4042ea118c9279f8a7 100644 (file)
@@ -758,6 +758,10 @@ void print_tm(FILE *f, const struct tcf_t *tm)
                print_uint(PRINT_ANY, "last_used", " used %u sec",
                           tm->lastuse / hz);
 
+       if (tm->firstuse != 0)
+               print_uint(PRINT_ANY, "first_used", " firstused %u sec",
+                          tm->firstuse / hz);
+
        if (tm->expires != 0)
                print_uint(PRINT_ANY, "expires", " expires %u sec",
                           tm->expires / hz);