/ast/src/lib/libast/string/ |
H A D | fmtclock.c | 59 return fmtelapsed(t / 10, 100);
|
H A D | fmtelapsed.c | 32 fmtelapsed(register unsigned long u, register int n) function
|
/ast/src/lib/libcoshell/ |
H A D | coclose.c | 73 errormsg(state.lib, 2, "coshell %d jobs %d user %s sys %s", co->index, co->total, fmtelapsed(co->user, CO_QUANT), fmtelapsed(co->sys, CO_QUANT));
|
/ast/src/cmd/coshell/ |
H A D | job.c | 177 message((-4, "jobcheck: %s: possibly hung %s", sp->name, fmtelapsed(cs.time - sp->start, 1))); 257 n = sfsprintf(buf, sizeof(buf), "x %d %d %s %s\n", jp->rid, jp->status, fmtelapsed(jp->user, CO_QUANT), fmtelapsed(jp->sys, CO_QUANT));
|
H A D | schedule.c | 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) : "*")); 525 message((-4, "%s: %s=%s idle=%s load=%s users=%d rank=%s", sp->name, sp->stat.up < 0 ? "down" : "up", fmtelapsed(sp->stat.up < 0 ? -sp->stat.up : sp->stat.up, 1), fmtelapsed(sp->stat.idle, 1), fmtfloat(sp->stat.load), sp->stat.users, fmtfloat(sp->rank)));
|
H A D | shell.c | 398 message((-4, "shellcheck: %s: hung %s", sp->name, fmtelapsed(cs.time - sp->start, 1)));
|
/ast/src/cmd/nmake/ |
H A D | trap.c | 133 setvar(internal.alarm->name, fmtelapsed(t, 1), 0); 143 error(level, "%6s %s %s", fmtelapsed((a->time >= now) ? (a->time - now) : 0, 1), timestr(tmxsns(a->time, 0)), a->rule->name);
|
H A D | command.c | 1182 sfprintf(jobs.tmp, "%s %d %s %s", job->target->name, cojob->status, fmtelapsed(cojob->user, CO_QUANT), fmtelapsed(cojob->sys, CO_QUANT)); 1342 message((-1, "jobs %d user %s sys %s", state.coshell->total, fmtelapsed(state.coshell->user, CO_QUANT), fmtelapsed(state.coshell->sys, CO_QUANT)));
|
H A D | state.c | 521 error(1, "another make has been running on %s in %s for the past %s", state.makefile, state.view[view].path, fmtelapsed(d, 1)); 1083 error(state.regress ? -1 : 1, "%s file system time %s local time by at least %s", r->name, n > 0 ? "lags" : "leads", fmtelapsed(a, 1));
|
H A D | object.c | 1523 error(1, "%s: another user was here %s ago", state.makefile, fmtelapsed(n, 1));
|
/ast/src/cmd/ss/ |
H A D | ss.c | 248 sfprintf(sfstdout, "%-12s%4s%7s,%3d user%s idle%7s, load%3d.%02d, %%usr%3d, %%sys%3d\n", sp->name, sp->stat.up < 0 ? "down" : "up", fmtelapsed(sp->stat.up < 0 ? -sp->stat.up : sp->stat.up, 1), sp->stat.users, sp->stat.users == 1 ? ", " : "s,", sp->stat.idle > sp->stat.up ? "%" : fmtelapsed(sp->stat.idle, 1), sp->stat.load / 100, sp->stat.load % 100, sp->stat.pctusr, sp->stat.pctsys);
|
/ast/src/lib/libcmd/ |
H A D | date.c | 303 int unelapsed = 0; /* fmtelapsed() => strelapsed */ 422 sfputr(sfstdout, fmtelapsed((unsigned long)tmxsec(e), 1), '\n');
|
H A D | tail.c | 703 error(ERROR_warn(0), "%s: %s timeout", fp->name, fmtelapsed(timeout, 1));
|
/ast/src/lib/libast/include/ |
H A D | ast.h | 268 extern char* fmtelapsed(unsigned long, int);
|
/ast/src/cmd/std/ |
H A D | ps.c | 681 s = fmtelapsed(state.now - (unsigned long)pp->ps->start, 1); 756 s = fmtelapsed(pp->ps->time, 1); 881 s = fmtelapsed(state.now - (unsigned long)pr->start, 1); 944 s = fmtelapsed(pr->time, 1);
|
/ast/src/lib/libpz/ |
H A D | pzopen.c | 298 , fmtelapsed(e, 100)
|
/ast/src/cmd/dsslib/time_t/ |
H A D | time_t.c | 206 s = fmtelapsed((unsigned long)value->number, 1000);
|
/ast/src/cmd/at/ |
H A D | atd.c | 667 message((-2, "wakeup %s", fmtelapsed(x, 1000))); 753 error(ERROR_OUTPUT|0, con->fd, "%-3s %5lu %3d %3d %3d %3d %3d %2d.%02d %5.5s%s", que->name, que->total, que->pending, que->running, que->nproc, que->peruser, que->nice, que->load / 100, que->load % 100, fmtelapsed(que->wait, 1), s);
|
/ast/src/lib/libast/ |
H A D | Makefile | 91 fmtbase.c fmtbuf.c fmtclock.c fmtdev.c fmtelapsed.c fmterror.c \
|