mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Avoid a nul period in the speed test
This commit is contained in:
parent
5a664a4100
commit
b1534fc21f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue