svn commit: r207659 - head/sys/kern

Konstantin Belousov kib at FreeBSD.org
Wed May 5 16:05:51 UTC 2010


Author: kib
Date: Wed May  5 16:05:51 2010
New Revision: 207659
URL: http://svn.freebsd.org/changeset/base/207659

Log:
  Fix a mistake in r207603. td_rux.rux_runtime still needs conversion.
  
  Reported and tested by:	nwhitehorn
  Pointy hat to:	kib
  MFC after:	6 days

Modified:
  head/sys/kern/kern_proc.c

Modified: head/sys/kern/kern_proc.c
==============================================================================
--- head/sys/kern/kern_proc.c	Wed May  5 12:48:30 2010	(r207658)
+++ head/sys/kern/kern_proc.c	Wed May  5 16:05:51 2010	(r207659)
@@ -901,7 +901,7 @@ fill_kinfo_thread(struct thread *td, str
 	kp->ki_pri.pri_user = td->td_user_pri;
 
 	if (preferthread) {
-		kp->ki_runtime = td->td_rux.rux_runtime;
+		kp->ki_runtime = cputick2usec(td->td_rux.rux_runtime);
 		kp->ki_pctcpu = sched_pctcpu(td);
 		kp->ki_estcpu = td->td_estcpu;
 	}


More information about the svn-src-all mailing list