summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-06-03 10:48:19 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-06-03 10:48:19 +0200
commit3a882565a943644dcf7287c9673fb07f617fb851 (patch)
treee9d40ec9d079bd6ab042f4bd6f09222c3c0963a6
parenta3c4c81afe25377020470ff71c1362136437397c (diff)
* cmdline/apt-get.cc:
- use unsigned long long instead of double to store values it gets
-rw-r--r--cmdline/apt-get.cc12
-rw-r--r--debian/changelog4
2 files changed, 9 insertions, 7 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 44235e358..661ca6147 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -837,9 +837,9 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true,
return false;
// Display statistics
- double FetchBytes = Fetcher.FetchNeeded();
- double FetchPBytes = Fetcher.PartialPresent();
- double DebBytes = Fetcher.TotalNeeded();
+ unsigned long long FetchBytes = Fetcher.FetchNeeded();
+ unsigned long long FetchPBytes = Fetcher.PartialPresent();
+ unsigned long long DebBytes = Fetcher.TotalNeeded();
if (DebBytes != Cache->DebSize())
{
c0out << DebBytes << ',' << Cache->DebSize() << endl;
@@ -2362,9 +2362,9 @@ bool DoSource(CommandLine &CmdL)
}
// Display statistics
- double FetchBytes = Fetcher.FetchNeeded();
- double FetchPBytes = Fetcher.PartialPresent();
- double DebBytes = Fetcher.TotalNeeded();
+ unsigned long long FetchBytes = Fetcher.FetchNeeded();
+ unsigned long long FetchPBytes = Fetcher.PartialPresent();
+ unsigned long long DebBytes = Fetcher.TotalNeeded();
// Check for enough free space
struct statvfs Buf;
diff --git a/debian/changelog b/debian/changelog
index 97d6abe8e..cad4bf990 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,8 +8,10 @@ apt (0.7.26~exp6) UNRELEASED; urgency=low
- deprecate AddSize with Multiplier as it is unused and switch to
boolean instead to handle the sizes more gracefully.
- switch i{Download,Usr}Size from double to (un)signed long long
+ * cmdline/apt-get.cc:
+ - use unsigned long long instead of double to store values it gets
- -- David Kalnischkies <kalnischkies@gmail.com> Thu, 03 Jun 2010 09:19:01 +0200
+ -- David Kalnischkies <kalnischkies@gmail.com> Thu, 03 Jun 2010 10:46:46 +0200
apt (0.7.26~exp5) experimental; urgency=low