| 76 |
|
static int rholo(void); |
| 77 |
|
static void setdefaults(HDGRID *gp); |
| 78 |
|
static void creatholo(HDGRID *gp); |
| 79 |
< |
static int headline(char *s); |
| 79 |
> |
static gethfunc headline; |
| 80 |
|
static void loadholo(void); |
| 81 |
|
static void rootname(char *rn, char *fn); |
| 82 |
|
static void badvalue(int vc); |
| 345 |
|
} |
| 346 |
|
#if FRAGWARN |
| 347 |
|
if (fsiz >= nextfragwarn && |
| 348 |
< |
(fsiz-hdfiluse(hdlist[0]->fd,0))/(fsiz/100) > FRAGWARN) { |
| 349 |
< |
sprintf(errmsg, "holodeck file fragmentation is %.0f%%", |
| 350 |
< |
100.*(fsiz-hdfiluse(hdlist[0]->fd,1))/fsiz); |
| 351 |
< |
error(WARNING, errmsg); |
| 352 |
< |
nextfragwarn = fsiz + (fsiz>>2); /* decent interval */ |
| 348 |
> |
(fsiz-hdfiluse(hdlist[0]->fd,0))/(fsiz/100) > FRAGWARN) { |
| 349 |
> |
double pctfrag = 100.*(fsiz-hdfiluse(hdlist[0]->fd,1))/fsiz; |
| 350 |
> |
if (pctfrag >= (double)FRAGWARN) { |
| 351 |
> |
sprintf(errmsg, "holodeck file fragmentation is %.0f%%", |
| 352 |
> |
pctfrag); |
| 353 |
> |
error(WARNING, errmsg); |
| 354 |
> |
nextfragwarn = fsiz + (fsiz>>2); |
| 355 |
> |
} |
| 356 |
|
} |
| 357 |
|
#endif |
| 358 |
|
t = time(NULL); /* check time */ |
| 491 |
|
|
| 492 |
|
static int |
| 493 |
|
headline( /* process information header line */ |
| 494 |
< |
char *s |
| 494 |
> |
char *s, |
| 495 |
> |
void *p |
| 496 |
|
) |
| 497 |
|
{ |
| 498 |
|
extern char FMTSTR[]; |