mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 05:40:14 -05:00
Standardize types to uint8_t and clean up legacy variables and setup boilerplate
This commit is contained in:
parent
27329c6f8c
commit
8f27c393d6
8 changed files with 25 additions and 173 deletions
|
|
@ -2141,7 +2141,7 @@ void speed(void)
|
|||
int delta = TEST_DELTA;
|
||||
int period = TEST_PERIOD;
|
||||
|
||||
nv = nd + RAID_PARITY_MAX + 1;
|
||||
nv = nd + RAID_PARITY_MAX;
|
||||
|
||||
printf("Speed test using %u data buffers of %u bytes, for a total of %u KiB.\n", nd, size, nd * size / 1024);
|
||||
printf("Memory blocks have a displacement of %u bytes to improve cache performance.\n", raid_optimal_displacement(nv));
|
||||
|
|
@ -2155,10 +2155,6 @@ void speed(void)
|
|||
for (i = 0; i < nd; ++i)
|
||||
memset(v[i], i, size);
|
||||
|
||||
/* zero buffer */
|
||||
memset(v[nd + RAID_PARITY_MAX], 0, size);
|
||||
raid_zero(v[nd + RAID_PARITY_MAX]);
|
||||
|
||||
speed_mem(nd, v, size, delta, period);
|
||||
|
||||
raid_mode(RAID_MODE_CAUCHY_RAID);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue