21 |
|
#define FRAGWARN 20 /* fragmentation for warning (%) */ |
22 |
|
#endif |
23 |
|
#ifndef MAXQTIME |
24 |
< |
#define MAXQTIME 5 /* target maximum seconds in queue */ |
24 |
> |
#define MAXQTIME 3 /* target maximum seconds in queue */ |
25 |
|
#endif |
26 |
|
/* manual cache flushing frequency */ |
27 |
|
#ifndef RTFLUSH |
319 |
|
static int |
320 |
|
rholo(void) /* holodeck main loop */ |
321 |
|
{ |
322 |
< |
static long nextfragwarn = 100L<<20; |
322 |
> |
static off_t nextfragwarn = 100L<<20; |
323 |
|
static int idle = 0; |
324 |
|
PACKET *pl = NULL, *plend; |
325 |
|
off_t fsiz; |
534 |
|
error(SYSTEM, errmsg); |
535 |
|
} |
536 |
|
if (ncprocs > 0) { |
537 |
< |
sprintf(errmsg, |
538 |
< |
"\"%s\" opened read-only; new rays will be discarded", |
539 |
< |
hdkfile); |
537 |
> |
sprintf(errmsg, "\"%s\" is read-only", hdkfile); |
538 |
> |
if (outdev == NULL) |
539 |
> |
error(USER, errmsg); |
540 |
> |
strcat(errmsg, "; new rays will be discarded"); |
541 |
|
error(WARNING, errmsg); |
542 |
|
force = -1; |
543 |
|
} |