netdev
[Top] [All Lists]

[PATCH 2.6 3/4]: gact: convert jiffie values to USER_HZ when dumping

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: [PATCH 2.6 3/4]: gact: convert jiffie values to USER_HZ when dumping
From: Patrick McHardy <kaber@xxxxxxxxx>
Date: Fri, 05 Nov 2004 00:25:28 +0100
Cc: netdev@xxxxxxxxxxx, jamal <hadi@xxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.3) Gecko/20041008 Debian/1.7.3-5
Convert jiffie values to USER_HZ in gact action.


# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/11/04 20:22:38+01:00 kaber@xxxxxxxxxxxx 
#   [PKT_SCHED]: gact: convert jiffie values to USER_HZ when dumping
#   
#   Signed-off-by: Patrick McHardy <kaber@xxxxxxxxx>
# 
# net/sched/gact.c
#   2004/11/04 20:22:32+01:00 kaber@xxxxxxxxxxxx +3 -3
#   [PKT_SCHED]: gact: convert jiffie values to USER_HZ when dumping
#   
#   Signed-off-by: Patrick McHardy <kaber@xxxxxxxxx>
# 
diff -Nru a/net/sched/gact.c b/net/sched/gact.c
--- a/net/sched/gact.c  2004-11-05 00:18:57 +01:00
+++ b/net/sched/gact.c  2004-11-05 00:18:57 +01:00
@@ -203,9 +203,9 @@
                RTA_PUT(skb, TCA_GACT_PROB, sizeof (p_opt), &p_opt);
        } 
 #endif
-       t.install = jiffies - p->tm.install;
-       t.lastuse = jiffies - p->tm.lastuse;
-       t.expires = p->tm.expires;
+       t.install = jiffies_to_clock_t(jiffies - p->tm.install);
+       t.lastuse = jiffies_to_clock_t(jiffies - p->tm.lastuse);
+       t.expires = jiffies_to_clock_t(p->tm.expires);
        RTA_PUT(skb, TCA_GACT_TM, sizeof (t), &t);
        return skb->len;
 
<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 2.6 3/4]: gact: convert jiffie values to USER_HZ when dumping, Patrick McHardy <=