diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-04-20 22:17:17 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-04-20 22:17:17 +0000 |
commit | 6ea4f3e83660c8309f2def22eff593a73b4b87b2 (patch) | |
tree | 10dc62c3107fcfd07ad427c9898ec8f37f61408b /cpp/src/IcePatch/Client.cpp | |
parent | minor fixes (diff) | |
download | ice-6ea4f3e83660c8309f2def22eff593a73b4b87b2.tar.bz2 ice-6ea4f3e83660c8309f2def22eff593a73b4b87b2.tar.xz ice-6ea4f3e83660c8309f2def22eff593a73b4b87b2.zip |
Win32 fixes
Diffstat (limited to 'cpp/src/IcePatch/Client.cpp')
-rw-r--r-- | cpp/src/IcePatch/Client.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/IcePatch/Client.cpp b/cpp/src/IcePatch/Client.cpp index 1393fde763a..53d456bc6a4 100644 --- a/cpp/src/IcePatch/Client.cpp +++ b/cpp/src/IcePatch/Client.cpp @@ -398,13 +398,12 @@ public: finishedDownload(total); if(_patchTotal > 0) { - Long l = _runningTotal + _fileTotal; - Ice::Int percent = (l * 100) / _patchTotal; + Long percent = ((_runningTotal + _fileTotal) * 100) / _patchTotal; if(percent > 100) { percent = 100; } - cout << " (" << percent << "% complete)"; + cout << " (" << static_cast<Int>(percent) << "% complete)"; } cout << endl; } |