SCCS-vsn: bin/ps/ps.c 4.6
-static char *sccsid = "@(#)ps.c 4.5 (Berkeley) %G%";
+static char *sccsid = "@(#)ps.c 4.6 (Berkeley) %G%";
/*
* ps; VAX 4BSD version
*/
/*
* ps; VAX 4BSD version
*/
ap->a_cpu = u.u_vm.vm_utime + u.u_vm.vm_stime;
if (sumcpu)
ap->a_cpu += u.u_cvm.vm_utime + u.u_cvm.vm_stime;
ap->a_cpu = u.u_vm.vm_utime + u.u_vm.vm_stime;
if (sumcpu)
ap->a_cpu += u.u_cvm.vm_utime + u.u_cvm.vm_stime;
+ if (mproc->p_textp && text) {
xp = &text[mproc->p_textp -
(struct text *)nl[X_TEXT].n_value];
ap->a_tsiz = xp->x_size;
xp = &text[mproc->p_textp -
(struct text *)nl[X_TEXT].n_value];
ap->a_tsiz = xp->x_size;