]> sjero.net Git - wget/blobdiff - src/retr.c
[svn] Better selection of POSIX clocks.
[wget] / src / retr.c
index a5198b7e591171792bf8b11360003d01c8dc4fed..59a1af3886d88f4aa6e325ac064d615e57dc44e3 100644 (file)
@@ -534,10 +534,10 @@ calc_rate (wgint bytes, double msecs, int *units)
 
   if (msecs == 0)
     /* If elapsed time is exactly zero, it means we're under the
-       granularity of the timer.  This can easily happen on systems
+       resolution of the timer.  This can easily happen on systems
        that use time() for the timer.  Since the interval lies between
-       0 and the timer's granularity, assume half the granularity.  */
-    msecs = ptimer_granularity () / 2.0;
+       0 and the timer's resolution, assume half the resolution.  */
+    msecs = ptimer_resolution () / 2.0;
 
   dlrate = 1000.0 * bytes / msecs;
   if (dlrate < 1024.0)