mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 01:04:13 +08:00
mdbx-test: refine internals (delays, logging).
Change-Id: Ife19e3bc1b124629891ba03fd9e1bf3b2ad3e301
This commit is contained in:
parent
53563e75bb
commit
421f4b01e6
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user