ref: refs/heads/master
commit 935924cf9bc31f0440b3a22abaa11069e3195ae5
Author: Duncan Mac-Vicar P
Date: Fri Mar 6 17:17:06 2009 +0100
aria2: show the download speed in the right units
---
zypp/media/MediaAria2c.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
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();
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org