From: <Kha...@us...> - 2010-02-19 15:55:56
|
Revision: 5588 http://planeshift.svn.sourceforge.net/planeshift/?rev=5588&view=rev Author: KhakiLord Date: 2010-02-19 15:55:48 +0000 (Fri, 19 Feb 2010) Log Message: ----------- Adjustment to progress bar. Modified Paths: -------------- trunk/src/pslaunch/download.cpp Modified: trunk/src/pslaunch/download.cpp =================================================================== --- trunk/src/pslaunch/download.cpp 2010-02-19 15:51:25 UTC (rev 5587) +++ trunk/src/pslaunch/download.cpp 2010-02-19 15:55:48 UTC (rev 5588) @@ -107,7 +107,7 @@ double dlnormalized = dlnow; const char* dlUnits = normalize_bytes(&dlnormalized); - progressLine.AppendFmt("] %4.3f%s (%3.1f%%) %4.1f%s/s eta %s ", dlnormalized, dlUnits, progress * 100.0, speed, speedUnits, etaStr.GetData()); + progressLine.AppendFmt("] %4.3f%s (%3d%%) %4.1f%s/s eta %s ", dlnormalized, dlUnits, (int) progress * 100, speed, speedUnits, etaStr.GetData()); lastSize = dlnow; UpdaterEngine::GetSingletonPtr()->PrintOutput(progressLine); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |