mirror of
https://gitee.com/openharmony/startup_init
synced 2024-11-23 16:20:00 +00:00
fix bug
Signed-off-by: zhong_ning <zhong_ning@hoperun.com>
This commit is contained in:
parent
6e579a6b7a
commit
38f26edf47
@ -182,9 +182,9 @@ int SplitString(char *srcPtr, char **dstPtr, int maxNum)
|
||||
|
||||
void WaitForFile(const char *source, unsigned int maxCount)
|
||||
{
|
||||
if (maxCount > WAIT_MAX_COUNT ) {
|
||||
INIT_LOGE("WaitForFile max time is 50ms");
|
||||
return;
|
||||
if (maxCount > WAIT_MAX_COUNT) {
|
||||
INIT_LOGE("WaitForFile max time is 5s");
|
||||
maxCount = WAIT_MAX_COUNT;
|
||||
}
|
||||
struct stat sourceInfo;
|
||||
unsigned int waitTime = 500000;
|
||||
|
Loading…
Reference in New Issue
Block a user