Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106028
b: refs/heads/master
c: 3e85ba0
h: refs/heads/master
v: v3
  • Loading branch information
David Howells authored and Linus Torvalds committed Jul 25, 2008
1 parent b1a7335 commit f6814e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 297c5d92634c809cef23d73e7b2556f2528ff7e2
refs/heads/master: 3e85ba034deec351f02cb55ff225bbd616463841
4 changes: 2 additions & 2 deletions trunk/kernel/tsacct.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
void bacct_add_tsk(struct taskstats *stats, struct task_struct *tsk)
{
struct timespec uptime, ts;
s64 ac_etime;
u64 ac_etime;

BUILD_BUG_ON(TS_COMM_LEN < TASK_COMM_LEN);

/* calculate task elapsed time in timespec */
do_posix_clock_monotonic_gettime(&uptime);
ts = timespec_sub(uptime, tsk->start_time);
/* rebase elapsed time to usec */
/* rebase elapsed time to usec (should never be negative) */
ac_etime = timespec_to_ns(&ts);
do_div(ac_etime, NSEC_PER_USEC);
stats->ac_etime = ac_etime;
Expand Down

0 comments on commit f6814e6

Please sign in to comment.