From: Jonathan McDowell Date: Tue, 18 Aug 2009 16:38:28 +0000 (+0100) Subject: Limit key dump files to 100,000 keys for "onak dump" X-Git-Tag: 0.3.8~10 X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=01108b24506dbe2083a23b61baa0bba9451f5ee0;p=onak.git Limit key dump files to 100,000 keys for "onak dump" Gives a file size of around 125M, which is a bit saner than > 1G --- diff --git a/onak.c b/onak.c index 40e8b0e..e6b9287 100644 --- a/onak.c +++ b/onak.c @@ -161,7 +161,7 @@ int main(int argc, char *argv[]) } else if (!strcmp("dump", argv[optind])) { config.dbbackend->initdb(true); dumpstate.count = dumpstate.filenum = 0; - dumpstate.maxcount = 1000000; + dumpstate.maxcount = 100000; dumpstate.fd = -1; dumpstate.filebase = "keydump.%d.pgp"; config.dbbackend->iterate_keys(dump_func, &dumpstate);