提交 33f138fb 编写于 作者: Z zhong_ning

init : add sleep cmd

Signed-off-by: Nzhong_ning <zhong_ning@hoperun.com>
上级 869e2406
......@@ -292,7 +292,7 @@ static void DoSleep(const char *cmdContent)
}
errno = 0;
unsigned long sleepTime = stroul(ctx->argv[0], NULL, 10);
unsigned long sleepTime = strtoul(ctx->argv[0], NULL, 10);
if (errno != 0) {
INIT_LOGE("cannot covert sleep time in command \" sleep \"");
goto out;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册