diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:14 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:14 +0000 |
commit | a7e66b170369fe1e1e7fdd2c3abd8c85e9b15bf9 (patch) | |
tree | fda7a79eebc9f315294d310693d00b4d32368053 /apt-pkg/pkgcachegen.cc | |
parent | b0b4efb96c3fad90bf978d61b230501bcdadff3d (diff) |
More cache usage counters
Author: jgg
Date: 1998-12-14 03:39:15 GMT
More cache usage counters
Diffstat (limited to 'apt-pkg/pkgcachegen.cc')
-rw-r--r-- | apt-pkg/pkgcachegen.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc index 58561bf35..7cf332b68 100644 --- a/apt-pkg/pkgcachegen.cc +++ b/apt-pkg/pkgcachegen.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: pkgcachegen.cc,v 1.25 1998/12/14 02:23:47 jgg Exp $ +// $Id: pkgcachegen.cc,v 1.26 1998/12/14 03:39:15 jgg Exp $ /* ###################################################################### Package Cache Generator - Generator for the cache structure. @@ -188,6 +188,8 @@ bool pkgCacheGenerator::NewFileVer(pkgCache::VerIterator &Ver, VF->Size = List.Size(); if (Cache.HeaderP->MaxVerFileSize < VF->Size) Cache.HeaderP->MaxVerFileSize = VF->Size; + Cache.HeaderP->VerFileCount++; + return true; } /*}}}*/ @@ -295,6 +297,7 @@ bool pkgCacheGenerator::ListParser::NewProvides(pkgCache::VerIterator Ver, unsigned long Provides = Owner->Map.Allocate(sizeof(pkgCache::Provides)); if (Provides == 0) return false; + Cache.HeaderP->ProvidesCount++; // Fill it in pkgCache::PrvIterator Prv(Cache,Cache.ProvideP + Provides,Cache.PkgP); |