continue;
}
if (!check_str_time(p, "timeout", &ull)) {
- td->timeout = ul1;
+ td->timeout = ull;
fgetpos(f, &off);
continue;
}
printf("\t-l Generate per-job latency logs\n");
printf("\t-w Generate per-job bandwidth logs\n");
printf("\t-m Minimal (terse) output\n");
- printf("\t-f Job file (Required)\n");
printf("\t-v Print version info and exit\n");
}
switch (c) {
case 't':
def_timeout = atoi(optarg);
- idx++;
+ idx = optind;
break;
case 'l':
write_lat_log = 1;
- idx++;
+ idx = optind;
break;
case 'w':
write_bw_log = 1;
- idx++;
+ idx = optind;
break;
case 'o':
f_out = fopen(optarg, "w+");
exit(1);
}
f_err = f_out;
- idx++;
+ idx = optind;
break;
case 'm':
terse_output = 1;
- idx++;
+ idx = optind;
break;
case 'h':
usage(argv[0]);
ini_file[ini_idx - 1] = strdup(argv[idx]);
idx++;
}
-
+
if (!f_out) {
f_out = stdout;
f_err = stderr;