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

Comparing ray/src/hd/holofile.c (file contents):
Revision 3.56 by greg, Thu Sep 9 01:06:19 2004 UTC vs.
Revision 3.57 by greg, Thu Sep 9 01:41:21 2004 UTC

# Line 407 | Line 407 | hdfiluse(      /* compute file usage (in bytes) */
407   )
408   {
409          off_t   total = 0;
410 <        register int    i, j;
410 >        register int    j;
411  
412          for (j = 0; hdlist[j] != NULL; j++) {
413                  if (hdlist[j]->fd != fd)
414                          continue;
415                  total += biglob(hdlist[j])->nrd * sizeof(RAYVAL);
416 <                i = nbeams(hdlist[j]);
417 <                total += i*sizeof(BEAMI) + sizeof(HDGRID);
418 <                for ( ; i > 0; i--)
416 >                total += nbeams(hdlist[j])*sizeof(BEAMI) + sizeof(HDGRID);
417 > #if 0
418 >                for (i = nbeams(hdlist[j]); i > 0; i--)
419                          if (hdlist[j]->bl[i] != NULL)
420                                  total += sizeof(RAYVAL) *
421                                                  (hdlist[j]->bl[i]->nrm -
422                                                  hdlist[j]->bi[i].nrd);
423 + #endif
424          }
425 <        return(total);          /* does not include fragments */
425 >        return(total);          /* doesn't include fragments, unflushed rays */
426   }
427  
428  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines