]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
clientlog: add debug message for maximum number of records
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 20 May 2020 10:14:59 +0000 (12:14 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 21 May 2020 10:20:11 +0000 (12:20 +0200)
clientlog.c

index 72c477b3a63be68224b1105a5f6046c745327117..4530235c5c9483dd3ad9bcf213c5dcf5d6405811 100644 (file)
@@ -361,6 +361,7 @@ CLG_Initialise(void)
      table where two copies exist at the same time. */
   max_slots = CNF_GetClientLogLimit() / (sizeof (Record) * SLOT_SIZE * 3 / 2);
   max_slots = CLAMP(MIN_SLOTS, max_slots, MAX_SLOTS);
+  DEBUG_LOG("Max records %u", 1U << ((int)round(log(max_slots) / log(2)) + SLOT_BITS));
 
   slots = 0;
   records = NULL;