Merge pull request #65 from nickcooper-zhangtonghao/master

redis: Use the ff_gettimeofday instead of gettimeofday.
dev
logwang 2017-08-31 11:34:42 +08:00 committed by GitHub
commit 8c92b6e17e
1 changed files with 5 additions and 0 deletions

View File

@ -185,7 +185,12 @@ static void aeGetTime(long *seconds, long *milliseconds)
{
struct timeval tv;
#ifdef HAVE_FF_KQUEUE
ff_gettimeofday(&tv, NULL);
#else
gettimeofday(&tv, NULL);
#endif
*seconds = tv.tv_sec;
*milliseconds = tv.tv_usec/1000;
}