+#ifdef MELB
+ /*
+ * If a process was running, see if time to make it nicer
+ */
+ if (!noproc) {
+ pp = u.u_procp;
+ if (pp->p_uid
+#ifdef MUSH
+ && !(pp->p_flag & SLOGIN)
+#else
+ /* this is definitely not good enough */
+ && (pp->p_pid != pp->p_pgrp || pp->p_ppid != 1)
+#endif
+ && (u.u_ru.ru_utime + u.u_ru.ru_stime) >
+ (pp->p_nice-NZERO+1)*NFACT
+ && pp->p_nice >= NZERO
+ && pp->p_nice < MAXNICE
+ ) {
+ pp->p_nice++;
+ (void) setpri(pp);
+ pp->p_pri = pp->p_usrpri;
+ }
+ }
+#else