Explorar o código

* cmdline/apt-get.cc:
- use unsigned long long instead of double to store values it gets

David Kalnischkies %!s(int64=16) %!d(string=hai) anos
pai
achega
3a882565a9
Modificáronse 2 ficheiros con 9 adicións e 7 borrados
  1. 6 6
      cmdline/apt-get.cc
  2. 3 1
      debian/changelog

+ 6 - 6
cmdline/apt-get.cc

@@ -837,9 +837,9 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true,
       return false;
       return false;
 
 
    // Display statistics
    // 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())
    if (DebBytes != Cache->DebSize())
    {
    {
       c0out << DebBytes << ',' << Cache->DebSize() << endl;
       c0out << DebBytes << ',' << Cache->DebSize() << endl;
@@ -2362,9 +2362,9 @@ bool DoSource(CommandLine &CmdL)
    }
    }
    
    
    // Display statistics
    // 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
    // Check for enough free space
    struct statvfs Buf;
    struct statvfs Buf;

+ 3 - 1
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
     - deprecate AddSize with Multiplier as it is unused and switch to
       boolean instead to handle the sizes more gracefully.
       boolean instead to handle the sizes more gracefully.
     - switch i{Download,Usr}Size from double to (un)signed long long
     - 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
 apt (0.7.26~exp5) experimental; urgency=low