]> the.earth.li Git - onak.git/commitdiff
Include statistics for fetching by SKS hash in "keydctl status"
authorJonathan McDowell <noodles@earth.li>
Thu, 9 Jun 2016 11:00:50 +0000 (12:00 +0100)
committerJonathan McDowell <noodles@earth.li>
Thu, 9 Jun 2016 11:00:50 +0000 (12:00 +0100)
These statistics were already being collected and passed to keydctl,
but were not being displayed.

keydctl.c

index 1aa5d59e4ccfe09dbe2bbc36baac9315bf54b163..25d5f45964fc3b882a5590b60e4cb7e0229441d2 100644 (file)
--- a/keydctl.c
+++ b/keydctl.c
@@ -175,6 +175,8 @@ static void keyd_status(void)
                stats.command_stats[KEYD_CMD_GET_ID]);
        printf("  Get key by FP:    %d\n",
                stats.command_stats[KEYD_CMD_GET_FP]);
+       printf("  Get key by hash:  %d\n",
+               stats.command_stats[KEYD_CMD_GET_SKSHASH]);
        printf("  Store key:        %d\n",
                stats.command_stats[KEYD_CMD_STORE]);
        printf("  Delete key:       %d\n",