summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client/output-json.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2023-05-26 14:57:39 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2023-05-26 14:57:39 +0000
commit90c77ea7ca1567e33297e846767082ccc8d15afd (patch)
tree8ae3af0f0505f975f2ce79cd99fe7e9127dfd5be /usr.sbin/rpki-client/output-json.c
parentca91f4690272b041516a857b2b5ebc0788fed2bb (diff)
Properly account del_extra_files and add the value to the json header.
OK tb@ (from a larger diff)
Diffstat (limited to 'usr.sbin/rpki-client/output-json.c')
-rw-r--r--usr.sbin/rpki-client/output-json.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/output-json.c b/usr.sbin/rpki-client/output-json.c
index 39f1cbdd3e7..f68872e5998 100644
--- a/usr.sbin/rpki-client/output-json.c
+++ b/usr.sbin/rpki-client/output-json.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: output-json.c,v 1.37 2023/05/03 09:54:25 claudio Exp $ */
+/* $OpenBSD: output-json.c,v 1.38 2023/05/26 14:57:38 claudio Exp $ */
/*
* Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
*
@@ -73,8 +73,10 @@ outputheader_json(struct stats *st)
json_do_int("vaps", st->repo_tal_stats.vaps);
json_do_int("uniquevaps", st->repo_tal_stats.vaps_uniqs);
json_do_int("cachedir_del_files", st->repo_stats.del_files);
- json_do_int("cachedir_superfluous_files", st->repo_stats.extra_files);
json_do_int("cachedir_del_dirs", st->repo_stats.del_dirs);
+ json_do_int("cachedir_superfluous_files", st->repo_stats.extra_files);
+ json_do_int("cachedir_del_superfluous_files",
+ st->repo_stats.del_extra_files);
json_do_end();
}