mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-05-25 11:22:22 +00:00
configure defaults to make more sense
This commit is contained in:
parent
0102f9ff39
commit
9431a80ebb
1 changed files with 9 additions and 6 deletions
15
main.c
15
main.c
|
@ -499,10 +499,11 @@ void printhelp(const char *progname)
|
|||
"\t-t numthreads - specify number of threads (default - auto)\n"
|
||||
"\t-j numthreads - same as -t\n"
|
||||
"\t-n numkeys - specify number of keys (default - 0 - unlimited)\n"
|
||||
"\t-z - use faster, experimental key generation method\n"
|
||||
"\t-z - use faster key generation method. this is now default\n"
|
||||
"\t-Z - use slower key generation method\n"
|
||||
"\t-s - print statistics each 10 seconds\n"
|
||||
"\t-S t - print statistics every specified ammount of seconds\n"
|
||||
"\t-R - realtime statistic mode\n"
|
||||
"\t-T - do not reset statistics counters when printing\n"
|
||||
,progname,progname);
|
||||
exit(1);
|
||||
}
|
||||
|
@ -542,13 +543,13 @@ int main(int argc,char **argv)
|
|||
int ignoreargs = 0;
|
||||
int dirnameflag = 0;
|
||||
int numthreads = 0;
|
||||
int fastkeygen = 0;
|
||||
int fastkeygen = 1;
|
||||
struct threadvec threads;
|
||||
#ifdef STATISTICS
|
||||
struct statsvec stats;
|
||||
struct tstatsvec tstats;
|
||||
u64 reportdelay = 0;
|
||||
int realtimestats = 0;
|
||||
int realtimestats = 1;
|
||||
#endif
|
||||
int tret;
|
||||
|
||||
|
@ -639,6 +640,8 @@ int main(int argc,char **argv)
|
|||
exit(1);
|
||||
}
|
||||
}
|
||||
else if (*arg == 'Z')
|
||||
fastkeygen = 0;
|
||||
else if (*arg == 'z')
|
||||
fastkeygen = 1;
|
||||
else if (*arg == 's') {
|
||||
|
@ -662,9 +665,9 @@ int main(int argc,char **argv)
|
|||
exit(1);
|
||||
#endif
|
||||
}
|
||||
else if (*arg == 'R') {
|
||||
else if (*arg == 'T') {
|
||||
#ifdef STATISTICS
|
||||
realtimestats = 1;
|
||||
realtimestats = 0;
|
||||
#else
|
||||
fprintf(stderr,"statistics support not compiled in\n");
|
||||
exit(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue