Lines Matching refs:time
205 if (cs.time - (unsigned long)tt > LOST)
207 tt = cs.time;
217 * dp worst open from last time [close after dt]
246 else if (cs.time > ap->start + LOST)
250 ap->update = cs.time + 2 * LOST;
253 if (ap->update <= cs.time && ap->errors < ERRORS) update(ap);
257 if (cs.time > ap->override)
266 ap->override = cs.time - 1;
270 if (ap->home) ap->override = cs.time + HOME;
276 if (ap->update <= cs.time && ap->errors < ERRORS) update(ap);
292 message((-4, "open=%d override=%d sp=%s mp=%s xp=%s dp=%s dt=%s", nopen, noverride, sp ? sp->name : "*", mp ? mp->name : "*", xp ? xp->name : "*", dp ? dp->name : "*", dp && dt > cs.time ? fmtelapsed(dt - cs.time, 1) : "*"));
295 if (!xp->running && (nopen - xp->cpu >= state.pool + noverride || state.open - xp->cpu >= state.fdtotal / 2 || xp == dp && cs.time > dt && (!xm || !mp || mp->rank < PCT(xp->rank, H_RANK))))
304 dt = cs.time + 2 * UPDATE;
391 sp->override = cs.time + (sp->home ? HOME : OVERRIDE);
454 else if (sp->update > cs.time + UPDATE) sp->update = 0;
458 if (!sp->update && !(op & GET) || (a->set & (SETBIAS|SETCPU|SETIDLE|SETIGNORE|SETRATING|SETSCALE)) && sp->update <= cs.time + UPDATE) update(sp);
518 if (sp->stat.up < 0) sp->update = cs.time + CS_STAT_DOWN;
521 sp->update = cs.time + UPDATE;
522 if (sp->fd > 0 && (2 * sp->stat.up) < (cs.time - sp->start)) shellclose(sp, -1);
549 state.access = cs.time + ACCESS_SEARCH;
558 state.access = cs.time + ACCESS_SEARCH;
561 state.access = cs.time + ACCESS_UPDATE;