]> git.proxmox.com Git - mirror_qemu.git/commit - tests/qht-bench.c
tests/qht-bench: Adjust testing rate by -1
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 26 Jun 2020 20:09:49 +0000 (13:09 -0700)
committerAlex Bennée <alex.bennee@linaro.org>
Sat, 11 Jul 2020 14:53:00 +0000 (15:53 +0100)
commitd11f824991749c4b28c3c08ca737e82d0d9d01e6
tree61634d397fb842ad511034eb40f0c9a524edab1b
parent100a5efbbcffef50d187c045492bcd09d871845e
tests/qht-bench: Adjust testing rate by -1

Since the seed must be non-zero, subtracting 1 means puts the
rate in 0..UINT64_MAX-1, which allows the 0 and UINT64_MAX
thresholds to corrspond to 0% (never) and 100% (always).

Suggested-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200626200950.1015121-2-richard.henderson@linaro.org>
tests/qht-bench.c