SCCS-vsn: usr.bin/w/w.c 4.8
-static char *sccsid = "@(#)w.c 4.7 (Berkeley) %G%";
+static char *sccsid = "@(#)w.c 4.8 (Berkeley) %G%";
/*
* w - print system status (who and what)
*
/*
* w - print system status (who and what)
*
double avenrun[3];
struct proc *aproc;
double avenrun[3];
struct proc *aproc;
-#define DIV60(t) ((t+30)/60) /* x/60 rounded */
+#define DIV60(t) ((t + 30) / 60) /* x/60 rounded */
#define TTYEQ (tty == pr[i].w_tty)
#define IGINT (1+3*1) /* ignoring both SIGINT & SIGQUIT */
#define TTYEQ (tty == pr[i].w_tty)
#define IGINT (1+3*1) /* ignoring both SIGINT & SIGQUIT */
if (lflag) {
/* print CPU time for all processes & children */
if (lflag) {
/* print CPU time for all processes & children */
- prttime(DIV60(jobtime)," ");
/* print cpu time for interesting process */
/* print cpu time for interesting process */
- prttime(DIV60(proctime)," ");
}
/* what user is doing, either command tail or args */
}
/* what user is doing, either command tail or args */