statzone

DNS zone file analyzer targeted at TLD zones
Log | Files | Refs | README | LICENSE

commit 3648b1cfbe689de38b5568c703cd368096f5de6f
parent f0ac036227dafbcb97d24a39f7d8764cf6bb42bd
Author: Frederic Cambus <fred@statdns.com>
Date:   Sun, 22 Dec 2019 14:21:35 +0100

Move printed statistics after the actual output.

Diffstat:
Msrc/statzone.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/statzone.c b/src/statzone.c @@ -244,9 +244,6 @@ main(int argc, char *argv[]) { timespecsub(&end, &begin, &elapsed); results.runtime = elapsed.tv_sec + elapsed.tv_nsec / 1E9; - /* Printing results */ - fprintf(stderr, "Processed %" PRIu64 " lines in %f seconds.\n\n", results.processedLines, results.runtime); - /* Printing CVS values */ fprintf(stdout, "---[ CSV values ]--------------------------------------------------------------\n"); fprintf(stdout, "IPv4 Glue ; IPv6 Glue ; NS ; Unique NS ; DS ; Signed ; IDNs ; Domains\n"); @@ -259,6 +256,9 @@ main(int argc, char *argv[]) { fprintf(stdout, "%" PRIu64 " ; ", results.idn); fprintf(stdout, "%" PRIu64 "\n", results.domains); + /* Printing results */ + fprintf(stderr, "Processed %" PRIu64 " lines in %f seconds.\n", results.processedLines, results.runtime); + /* Clean up */ fclose(zoneFile);