From 421f4b01e632deb42a73fd74e8ee4ad877870ef9 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Tue, 9 Jul 2019 01:39:32 +0300 Subject: [PATCH] mdbx-test: refine internals (delays, logging). Change-Id: Ife19e3bc1b124629891ba03fd9e1bf3b2ad3e301 --- test/ttl.cc | 6 +++--- test/utils.cc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/ttl.cc b/test/ttl.cc index b98f4a8b..1ce8d4b7 100644 --- a/test/ttl.cc +++ b/test/ttl.cc @@ -77,9 +77,9 @@ bool testcase_ttl::run() { const unsigned window_width = edge2window(salt, window_max); unsigned head_count = edge2count(salt, count_max); - log_info("ttl: step #%zu (serial %" PRIu64 - ", window %u, count %u) salt %" PRIu64, - nops_completed, serial, window_width, head_count, salt); + log_verbose("ttl: step #%zu (serial %" PRIu64 + ", window %u, count %u) salt %" PRIu64, + nops_completed, serial, window_width, head_count, salt); if (window_width) { while (fifo.size() > window_width) { diff --git a/test/utils.cc b/test/utils.cc index ddf47a4c..18f6c6ab 100644 --- a/test/utils.cc +++ b/test/utils.cc @@ -353,7 +353,7 @@ void jitter_delay(bool extra) { cpu_relax(); if (dice > 2) { unsigned us = entropy_white() & - (extra ? 0xfffff /* 1.05 s */ : 0x3ff /* 1 ms */); + (extra ? 0xffff /* 656 ms */ : 0x3ff /* 1 ms */); log_trace("== jitter.delay: %0.6f", us / 1000000.0); osal_udelay(us); }