]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-cache.cc
deprecate 'apt-key update' and no-op it in Debian
[apt.git] / cmdline / apt-cache.cc
index 7139bdeacde06409a60caa20bd978d361a2f6e9b..6153f0e49d03fd79840cc9c57090c2adad3e96fd 100644 (file)
@@ -172,6 +172,7 @@ static void ShowHashTableStats(std::string Type,
    cout << "Total buckets in " << Type << ": " << NumBuckets << std::endl;
    cout << "  Unused: " << UnusedBuckets << std::endl;
    cout << "  Used: " << UsedBuckets  << std::endl;
+   cout << "  Utilization: " << 100.0 * UsedBuckets/NumBuckets << "%" << std::endl;
    cout << "  Average entries: " << Entries/(double)UsedBuckets << std::endl;
    cout << "  Longest: " << LongestBucket << std::endl;
    cout << "  Shortest: " << ShortestBucket << std::endl;
@@ -1141,8 +1142,6 @@ static std::vector<aptDispatchWithHelp> GetCommands()                     /*{{{*/
                                                                        /*}}}*/
 int main(int argc,const char *argv[])                                  /*{{{*/
 {
-   InitLocale();
-
    // Parse the command line and initialize the package library
    CommandLine CmdL;
    auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_CACHE, &_config, &_system, argc, argv, &ShowHelp, &GetCommands);