Signed-off-by: Jo-Philipp Wich <jo@mein.io>
break;
case 't':
- exec_timeout = strtol(optarg, NULL, 0);
+ exec_timeout = 1000 * strtol(optarg, NULL, 0);
break;
default:
}
}
- if (exec_timeout < 1 || exec_timeout > 600) {
+ if (exec_timeout < 1000 || exec_timeout > 600000) {
fprintf(stderr, "Invalid execution timeout specified\n");
return -1;
}
- exec_timeout *= 1000;
-
if (stat(RPC_UCI_DIR_PREFIX, &s))
mkdir(RPC_UCI_DIR_PREFIX, 0700);