The problem does not exist in the Redis server implementation of mstime()
but is only limited to redis-cli and redis-benchmark.
Thix fixes issue #839.
long long mst;
gettimeofday(&tv, NULL);
long long mst;
gettimeofday(&tv, NULL);
- mst = ((long)tv.tv_sec)*1000;
+ mst = ((long long)tv.tv_sec)*1000;
mst += tv.tv_usec/1000;
return mst;
}
mst += tv.tv_usec/1000;
return mst;
}
long long mst;
gettimeofday(&tv, NULL);
long long mst;
gettimeofday(&tv, NULL);
- mst = ((long)tv.tv_sec)*1000;
+ mst = ((long long)tv.tv_sec)*1000;
mst += tv.tv_usec/1000;
return mst;
}
mst += tv.tv_usec/1000;
return mst;
}