Signed-off-by: zhong_ning <zhong_ning@hoperun.com>
This commit is contained in:
zhong_ning 2021-07-08 22:31:17 +08:00
parent 6e579a6b7a
commit 38f26edf47

View File

@ -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;