summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorsp92102 <none@none>2006-01-10 20:49:40 -0800
committersp92102 <none@none>2006-01-10 20:49:40 -0800
commit4d3d099f13169ab8c528b49d89bd3d787104cf98 (patch)
tree7380c1fc7d2749a070996c102ffc1cc84af0a969 /usr/src
parentacbc304de7414b7021bc969ccc9274ce478580b0 (diff)
downloadillumos-joyent-4d3d099f13169ab8c528b49d89bd3d787104cf98.tar.gz
6367316 The time that CPU used is not updated correctly to /var/adm/pacct in Solaris10.
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/os/acct.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr/src/uts/common/os/acct.c b/usr/src/uts/common/os/acct.c
index e086b505c1..f442a30ae3 100644
--- a/usr/src/uts/common/os/acct.c
+++ b/usr/src/uts/common/os/acct.c
@@ -20,7 +20,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -400,10 +400,9 @@ acct(char st)
p = curproc;
bcopy(u.u_comm, ag->acctbuf.ac_comm, sizeof (ag->acctbuf.ac_comm));
ag->acctbuf.ac_btime = u.u_start.tv_sec;
- ag->acctbuf.ac_utime = acct_compress(
- (comp_t)NSEC_TO_TICK(p->p_acct[LMS_USER]));
+ ag->acctbuf.ac_utime = acct_compress(NSEC_TO_TICK(p->p_acct[LMS_USER]));
ag->acctbuf.ac_stime = acct_compress(
- (comp_t)NSEC_TO_TICK(p->p_acct[LMS_SYSTEM] + p->p_acct[LMS_TRAP]));
+ NSEC_TO_TICK(p->p_acct[LMS_SYSTEM] + p->p_acct[LMS_TRAP]));
ag->acctbuf.ac_etime = acct_compress(lbolt - u.u_ticks);
ag->acctbuf.ac_mem = acct_compress((ulong_t)u.u_mem);
ag->acctbuf.ac_io = acct_compress((ulong_t)p->p_ru.ioch);