diff options
author | antirez <antirez@gmail.com> | 2014-03-20 11:33:25 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-03-20 11:33:25 +0100 |
commit | d77e2316825ec9dfa21b4ef74f6e90d335b846e8 (patch) | |
tree | f5598d33201848423db005a07cc8d4e67c46948e /src/object.c | |
parent | fe30847016dae6f0e05542b662e3d5e57abcd563 (diff) | |
download | redis-d77e2316825ec9dfa21b4ef74f6e90d335b846e8.tar.gz |
Specify LRU resolution in milliseconds.
Diffstat (limited to 'src/object.c')
-rw-r--r-- | src/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c index d6efcd8c2..775a0dd50 100644 --- a/src/object.c +++ b/src/object.c @@ -650,7 +650,7 @@ char *strEncoding(int encoding) { /* Given an object returns the min number of seconds the object was never * requested, using an approximated LRU algorithm. */ -unsigned long estimateObjectIdleTime(robj *o) { +unsigned long long estimateObjectIdleTime(robj *o) { if (server.lruclock >= o->lru) { return (server.lruclock - o->lru) * REDIS_LRU_CLOCK_RESOLUTION; } else { |