Messages in this thread Patch in this message | | | Date | Tue, 9 Mar 2004 00:33:08 +0100 (CET) | From | Tim Schmielau <> | Subject | Re: [PATCH][RFC] fix BSD accounting (w/ long-term perspective ;-) |
| |
> Patch for 2.6 kernel is below.
Whoops, missed the incremental hunk below. Corrected full patch is at http://www.physik3.uni-rostock.de/tim/kernel/2.6/acct-06.patch
Tim
--- linux-2.6.4-rc1-acct/kernel/acct.c 2004-03-08 22:31:26.000000000 +0100 +++ linux-2.6.4-rc1-acct1/kernel/acct.c 2004-03-09 00:25:50.000000000 +0100 @@ -345,8 +345,8 @@ static void do_acct_process(long exitcod ac.ac_etime = encode_comp_t(jiffies_64_to_AHZ(elapsed)); do_div(elapsed, HZ); ac.ac_btime = xtime.tv_sec - elapsed; - ac.ac_utime = encode_comp_t(current->utime); - ac.ac_stime = encode_comp_t(current->stime); + ac.ac_utime = encode_comp_t(jiffies_to_AHZ(current->utime)); + ac.ac_stime = encode_comp_t(jiffies_to_AHZ(current->stime)); ac.ac_uid = current->uid; ac.ac_gid = current->gid; #if ACCT_VERSION==1 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |