Also blindly attempt to fix broken world with respect to proc.p_runtime

changes.
This commit is contained in:
Brian Feldman 2002-02-22 19:10:09 +00:00
parent 5158a0f59f
commit 49b33de841
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91075

View file

@ -120,6 +120,7 @@ kvm_proclist(kd, what, arg, p, bp, maxcnt)
struct thread mainthread;
struct proc proc;
struct proc pproc;
struct timeval tv;
kp = &kinfo_proc;
kp->ki_structsize = sizeof(kinfo_proc);
@ -313,7 +314,8 @@ kvm_proclist(kd, what, arg, p, bp, maxcnt)
kp->ki_mtxname, MTXNAMELEN);
kp->ki_mtxname[MTXNAMELEN] = 0;
}
kp->ki_runtime = proc.p_runtime;
bintime2timeval(&proc.p_runtime, &tv);
kp->ki_runtime = (u_int64_t)tv.tv_sec * 1000000 + tv.tv_usec;
kp->ki_pid = proc.p_pid;
kp->ki_siglist = proc.p_siglist;
kp->ki_sigmask = proc.p_sigmask;