Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmdline/snapraid.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ int main(int argc, char* argv[])
crc32c_init();

if (speedtest != 0) {
speed(period);
speed(period, plan);
os_done();
exit(EXIT_SUCCESS);
}
Expand Down
2 changes: 1 addition & 1 deletion cmdline/snapraid.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/****************************************************************************/
/* snapraid */

void speed(int period);
void speed(int period, int cnt);
void selftest(void);

#endif
Expand Down
4 changes: 2 additions & 2 deletions cmdline/speed.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static int64_t diffgettimeofday(struct timeval *start, struct timeval *stop)
*/
static unsigned side_effect;

void speed(int period)
void speed(int period, int cnt)
{
struct timeval start;
struct timeval stop;
Expand All @@ -89,7 +89,7 @@ void speed(int period)
int count;
int delta = period >= 1000 ? 10 : 1;
int size = TEST_SIZE;
int nd = TEST_COUNT;
int nd = cnt>0 ? cnt : TEST_COUNT;
int nv;
void *v_alloc;
void **v;
Expand Down