Просмотр исходного кода

Minor fixes
Author: jgg
Date: 1998-11-11 07:30:54 GMT
Minor fixes

Arch Librarian лет назад: 22
Родитель
Сommit
93274b8d88
3 измененных файлов с 6 добавлено и 6 удалено
  1. 3 3
      apt-pkg/acquire-method.cc
  2. 2 2
      apt-pkg/acquire.cc
  3. 1 1
      test/scratch.cc

+ 3 - 3
apt-pkg/acquire-method.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
-// $Id: acquire-method.cc,v 1.6 1998/11/11 06:54:15 jgg Exp $
+// $Id: acquire-method.cc,v 1.7 1998/11/11 07:30:54 jgg Exp $
 /* ######################################################################
 
    Acquire Method
@@ -334,8 +334,8 @@ void pkgAcqMethod::Status(const char *Format,...)
 // AcqMethod::FetchResult::FetchResult - Constructor			/*{{{*/
 // ---------------------------------------------------------------------
 /* */
-pkgAcqMethod::FetchResult::FetchResult() : LastModified(0), 
-                                   IMSHit(false), Size(0)
+pkgAcqMethod::FetchResult::FetchResult() : LastModified(0),
+                                   IMSHit(false), Size(0), ResumePoint(0)
 {
 }
 									/*}}}*/

+ 2 - 2
apt-pkg/acquire.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
-// $Id: acquire.cc,v 1.11 1998/11/11 06:54:16 jgg Exp $
+// $Id: acquire.cc,v 1.12 1998/11/11 07:30:55 jgg Exp $
 /* ######################################################################
 
    Acquire - File Acquiration
@@ -636,7 +636,7 @@ void pkgAcquireStatus::Stop()
 // ---------------------------------------------------------------------
 /* This is used to get accurate final transfer rate reporting. */
 void pkgAcquireStatus::Fetched(unsigned long Size,unsigned long Resume)
-{
+{   
    FetchedBytes += Size - Resume;
 }
 									/*}}}*/

+ 1 - 1
test/scratch.cc

@@ -103,7 +103,7 @@ void AcqTextStatus::Pulse(pkgAcquire *Owner)
    
    enum {Long = 0,Medium,Short} Mode = Long;
    
-   ScreenWidth = 140;
+   ScreenWidth = 78;
    char Buffer[300];
    char *End = Buffer + sizeof(Buffer);
    char *S = Buffer;