diff options
author | green <green@FreeBSD.org> | 2002-02-22 19:10:09 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2002-02-22 19:10:09 +0000 |
commit | 7f5881c8e019de198b8cb0efcd646063074066ec (patch) | |
tree | 62309298b28ce53621a9dccb8c88b4b3d8b99684 /lib/libkvm | |
parent | 119bc748313a07792baeda7ac0ee49f1e079f69c (diff) | |
download | FreeBSD-src-7f5881c8e019de198b8cb0efcd646063074066ec.zip FreeBSD-src-7f5881c8e019de198b8cb0efcd646063074066ec.tar.gz |
Also blindly attempt to fix broken world with respect to proc.p_runtime
changes.
Diffstat (limited to 'lib/libkvm')
-rw-r--r-- | lib/libkvm/kvm_proc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_proc.c b/lib/libkvm/kvm_proc.c index cb34360..5c02a02 100644 --- a/lib/libkvm/kvm_proc.c +++ b/lib/libkvm/kvm_proc.c @@ -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 @@ nopgrp: 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; |