Subject: [PATCH 2.6 4/4]: ipt: convert jiffie values to USER_HZ when dumping

From: Patrick McHardy <[email-masked]>
Date: Fri, 05 Nov 2004 00:25:32 +0100

Convert jiffie values to USER_HZ in ipt action.

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/11/05 00:17:18+01:00 [email-masked] 
#   [PKT_SCHED]: ipt: convert jiffie values to USER_HZ when dumping
#   
#   Signed-off-by: Patrick McHardy <[email-masked]>
# 
# net/sched/ipt.c
#   2004/11/05 00:17:10+01:00 [email-masked] +3 -3
#   [PKT_SCHED]: ipt: convert jiffie values to USER_HZ when dumping
#   
#   Signed-off-by: Patrick McHardy <[email-masked]>
# 
diff -Nru a/net/sched/ipt.c b/net/sched/ipt.c
--- a/net/sched/ipt.c	2004-11-05 00:19:01 +01:00
+++ b/net/sched/ipt.c	2004-11-05 00:19:01 +01:00
@@ -334,9 +334,9 @@
 	RTA_PUT(skb, TCA_IPT_HOOK, 4, &p->hook);
 	RTA_PUT(skb, TCA_IPT_CNT, sizeof(struct tc_cnt), &c);
 	RTA_PUT(skb, TCA_IPT_TABLE, IFNAMSIZ, p->tname);
-	tm.install = jiffies - p->tm.install;
-	tm.lastuse = jiffies - p->tm.lastuse;
-	tm.expires = p->tm.expires;
+	tm.install = jiffies_to_clock_t(jiffies - p->tm.install);
+	tm.lastuse = jiffies_to_clock_t(jiffies - p->tm.lastuse);
+	tm.expires = jiffies_to_clock_t(p->tm.expires);
 	RTA_PUT(skb, TCA_IPT_TM, sizeof (tm), &tm);
 	return skb->len;