ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/rholo.c
(Generate patch)

Comparing ray/src/hd/rholo.c (file contents):
Revision 3.8 by gregl, Mon Nov 10 18:05:24 1997 UTC vs.
Revision 3.9 by gregl, Tue Nov 11 11:31:54 1997 UTC

# Line 138 | Line 138 | initrholo()                    /* get our holodeck running */
138          if (!vdef(DISKSPACE))
139                  maxdisk = 0;
140          else
141 <                maxdisk = 1024.*1024.*vflt(DISKSPACE));
141 >                maxdisk = 1024.*1024.*vflt(DISKSPACE);
142                                                  /* record end time */
143          if (!vdef(TIME) || vflt(TIME) <= FTINY)
144                  endtime = 0;
# Line 205 | Line 205 | rholo()                                /* holodeck main loop */
205          if (ncprocs <= 0)
206                  return(1);
207                                          /* check file size */
208 <        if (maxdisk > 0 && hdfiluse(hdlist[0]->fd,0)+hdmemuse(0) >= maxdisk) {
208 >        if (maxdisk > 0 && hdfilen(hdlist[0]->fd) >= maxdisk) {
209                  error(WARNING, "file limit exceeded");
210                  return(0);
211          }
# Line 421 | Line 421 | PACKET *pl;
421   getradfile(rfargs)              /* run rad and get needed variables */
422   char    *rfargs;
423   {
424 <        static short    mvar[] = {VIEW,OCTREE,EXPOSURE,-1};
424 >        static short    mvar[] = {OCTREE,EXPOSURE,-1};
425          static char     tf1[] = TEMPLATE;
426          char    tf2[64];
427          char    combuf[256];
# Line 530 | Line 530 | int    ec;
530                          if (vdef(REPORT)) {
531                                  long    fsiz, fuse;
532                                  report(0);
533 <                                fsiz = lseek(hdlist[0]->fd, 0L, 2);
533 >                                fsiz = hdfilen(hdlist[0]->fd);
534                                  fuse = hdfiluse(hdlist[0]->fd, 1);
535                                  fprintf(stderr,
536                          "%s: %.1f Mbyte holodeck file, %.1f%% fragmentation\n",

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines