summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-05-04 12:54:52 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-05-04 12:54:52 +0200
commit173ae2a460b905b18911f42964fd38dbac2959d6 (patch)
tree2a23137fca18032126219b5fabcaf121a7799d9e /cmdline
parent52c41485092d6da77d2848a955609f22da50372c (diff)
use GroupCount for package names in stats and add a package struct line
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-cache.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc
index b0034bf6d..b981e2fa7 100644
--- a/cmdline/apt-cache.cc
+++ b/cmdline/apt-cache.cc
@@ -242,7 +242,9 @@ bool DumpPackage(CommandLine &CmdL)
bool Stats(CommandLine &Cmd)
{
pkgCache &Cache = *GCache;
- cout << _("Total package names: ") << Cache.Head().PackageCount << " (" <<
+ cout << _("Total package names: ") << Cache.Head().GroupCount << " (" <<
+ SizeToStr(Cache.Head().GroupCount*Cache.Head().GroupSz) << ')' << endl
+ << _("Total package structures: ") << Cache.Head().PackageCount << " (" <<
SizeToStr(Cache.Head().PackageCount*Cache.Head().PackageSz) << ')' << endl;
int Normal = 0;