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

Comparing ray/src/rt/rcontrib.c (file contents):
Revision 2.38 by greg, Thu Sep 10 00:45:01 2020 UTC vs.
Revision 2.39 by greg, Thu Sep 10 01:01:18 2020 UTC

# Line 187 | Line 187 | morays(void)
187                  if (!total_rays) {
188                          total_rays = raysleft;
189                          tstart = tnow;
190 +                } else {
191 +                        sprintf(errmsg, "%.2f%% done after %.3f hours\n",
192 +                                        100.-100.*raysleft/total_rays,
193 +                                        (1./3600.)*(tnow - tstart));
194 +                        eputs(errmsg);
195                  }
191                sprintf(errmsg, "%.2f%% done after %.3f hours\n",
192                                100.-100.*raysleft/total_rays,
193                                (1./3600.)*(tnow - tstart));
194                eputs(errmsg);
196                  last_report = tnow;
197          }
198          return(--raysleft);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines