[pacman-dev] VerbosePkgLists, size strings, manpage

Jakob Gruber jakob.gruber at gmail.com
Wed Feb 23 21:02:31 EST 2011


Fixed in error when computing download eta, my working branch is 
updated: https://github.com/schuay/pacman-arch/commits/working

Changed:

diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index 8ec4c3e..5a96a54 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -570,7 +570,7 @@ void cb_dl_progress(const char *filename, off_t 
file_xfered, off_t file_total)
                 rate = (xfered - xfered_last) / timediff;
                 /* average rate to reduce jumpiness */
                 rate = (rate + 2 * rate_last) / 3;
-               eta_s = (total - xfered) / (rate * 1024.0 * 1024.0);
+               eta_s = (total - xfered) / rate;
                 rate_last = rate;
                 xfered_last = xfered;
         }


More information about the pacman-dev mailing list