Avoid a nul period in the speed test

This commit is contained in:
Andrea Mazzoleni 2026-05-21 15:23:45 +02:00
parent 5a664a4100
commit b1534fc21f

View file

@ -78,8 +78,8 @@ void speed(int period, int nd, int size)
size = 256 * KIBI;
else
size *= KIBI;
if (period < 0)
period = 1000;
if (period < 1)
period = 1;
delta = period >= 1000 ? 10 : 1;