mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-01 04:17:02 -05:00
Adds a basic memory test on the used memory buffers.
This commit is contained in:
parent
e7804a5f8f
commit
7414f8daec
8 changed files with 67 additions and 0 deletions
1
speed.c
1
speed.c
|
|
@ -70,6 +70,7 @@ void speed(void)
|
|||
unsigned char* zero;
|
||||
|
||||
buffer = malloc_nofail_vector_align(diskmax + LEV_MAX + 1, block_size, &buffer_alloc);
|
||||
mtest_vector(buffer, diskmax + LEV_MAX + 1, block_size);
|
||||
|
||||
/* initialize with fixed data */
|
||||
for(i=0;i<diskmax+LEV_MAX;++i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue