mirror of
https://github.com/fluencelabs/redis
synced 2025-06-28 16:31:33 +00:00
Specify LRU resolution in milliseconds.
This commit is contained in:
@ -844,11 +844,10 @@ void activeExpireCycle(int type) {
|
||||
}
|
||||
|
||||
void updateLRUClock(void) {
|
||||
server.lruclock = (server.unixtime/REDIS_LRU_CLOCK_RESOLUTION) &
|
||||
server.lruclock = (mstime()/REDIS_LRU_CLOCK_RESOLUTION) &
|
||||
REDIS_LRU_CLOCK_MAX;
|
||||
}
|
||||
|
||||
|
||||
/* Add a sample to the operations per second array of samples. */
|
||||
void trackOperationsPerSecond(void) {
|
||||
long long t = mstime() - server.ops_sec_last_sample_time;
|
||||
|
Reference in New Issue
Block a user