}
if (argc >= 4) {
- if (argv[3][0] == 't')
+ if (argv[3][0] == 't' && thread)
objid = strtoull(argv[3] + 1, &end, 0) + thread - 1;
else
objid = strtoull(argv[3], &end, 0);
}
/* make each thread write to a different offset */
- if (argv[1][0] == 't') {
+ if (argv[1][0] == 't' && thread) {
thr_offset = thread - 1;
count = strtoull(argv[1] + 1, &end, 0);
} else
}
}
if (argc >= 6) {
- if (argv[5][0] == 't')
+ if (argv[5][0] == 't' && thread)
objid = strtoull(argv[5] + 1, &end, 0) + thread - 1;
else
objid = strtoull(argv[5], &end, 0);