]> sjero.net Git - wget/blobdiff - src/ftp.c
[svn] Commit progress bar tweaks.
[wget] / src / ftp.c
index 5f18c7094824c2cda9fd54d64e05e712ad5da7ca..abad6a15d3db6220c173ee925908378293f19618 100644 (file)
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -924,7 +924,7 @@ Error in server response, closing control connection.\n"));
   con->dltime = wtimer_elapsed (timer);
   wtimer_delete (timer);
   tms = time_str (NULL);
-  tmrate = rate (*len - restval, con->dltime, 0);
+  tmrate = retr_rate (*len - restval, con->dltime, 0);
   /* Close data connection socket.  */
   closeport (dtsock);
   /* Close the local file.  */
@@ -1173,7 +1173,7 @@ ftp_loop_internal (struct url *u, struct fileinfo *f, ccon *con)
        }
       /* Time?  */
       tms = time_str (NULL);
-      tmrate = rate (len - restval, con->dltime, 0);
+      tmrate = retr_rate (len - restval, con->dltime, 0);
 
       /* If we get out of the switch above without continue'ing, we've
         successfully downloaded a file.  Remember this fact. */