use absl::SleepFor instead of usleep

This commit is contained in:
homuler 2021-01-24 12:05:05 +09:00
parent 39309bedba
commit 23ac13b285

View File

@ -667,7 +667,7 @@ bool BoxTracker::WaitForChunkFile(int id, int checkpoint,
} }
} }
usleep(wait_time_msec * 1000); absl::SleepFor(absl::Milliseconds(wait_time_msec));
total_wait_msec += wait_time_msec; total_wait_msec += wait_time_msec;
struct stat tmp; struct stat tmp;