From: Duncan Mac-Vicar P Date: Fri, 6 Mar 2009 16:17:06 +0000 (+0100) Subject: aria2: show the download speed in the right units X-Git-Tag: 6.6.0~40^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=935924cf9bc31f0440b3a22abaa11069e3195ae5;p=platform%2Fupstream%2Flibzypp.git aria2: show the download speed in the right units --- diff --git a/zypp/media/MediaAria2c.cc b/zypp/media/MediaAria2c.cc index ae3eeae..2dfa285 100644 --- a/zypp/media/MediaAria2c.cc +++ b/zypp/media/MediaAria2c.cc @@ -386,7 +386,8 @@ void MediaAria2c::getFileCopy( const Pathname & filename , const Pathname & targ // ((n-1)A(n-1) + Xn)/n = A(n) average_speed = (((average_speed_count - 1 )*average_speed) + current_speed)/average_speed_count; - report->progress ( progress, _url, average_speed, current_speed ); + // note that aria report speed in kbpss, while the report takes bps + report->progress ( progress, _url, average_speed * 1024, current_speed * 1024 ); // clear the progress line to detect mismatches between // [# and FILE: lines progressLine.clear();