Commit f29f26aa authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller

[PKT_SCHED]: gact: Convert jiffies values to USER_HZ when dumping

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b5dea05a
...@@ -203,9 +203,9 @@ tcf_gact_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) ...@@ -203,9 +203,9 @@ tcf_gact_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref)
RTA_PUT(skb, TCA_GACT_PROB, sizeof (p_opt), &p_opt); RTA_PUT(skb, TCA_GACT_PROB, sizeof (p_opt), &p_opt);
} }
#endif #endif
t.install = jiffies - p->tm.install; t.install = jiffies_to_clock_t(jiffies - p->tm.install);
t.lastuse = jiffies - p->tm.lastuse; t.lastuse = jiffies_to_clock_t(jiffies - p->tm.lastuse);
t.expires = p->tm.expires; t.expires = jiffies_to_clock_t(p->tm.expires);
RTA_PUT(skb, TCA_GACT_TM, sizeof (t), &t); RTA_PUT(skb, TCA_GACT_TM, sizeof (t), &t);
return skb->len; return skb->len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment