summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/Client.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-04-20 22:17:17 +0000
committerMark Spruiell <mes@zeroc.com>2004-04-20 22:17:17 +0000
commit6ea4f3e83660c8309f2def22eff593a73b4b87b2 (patch)
tree10dc62c3107fcfd07ad427c9898ec8f37f61408b /cpp/src/IcePatch/Client.cpp
parentminor fixes (diff)
downloadice-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.cpp5
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;
}