summaryrefslogtreecommitdiff
path: root/src/t_list.c
diff options
context:
space:
mode:
authorPremysl Hruby <dfenze@gmail.com>2012-03-27 17:39:58 +0200
committerantirez <antirez@gmail.com>2012-03-27 23:04:27 +0200
commit56ff70f8e0eec1f883166c50c877a1e78a7d3123 (patch)
treed1fbf57751ae5951384f75ff002f1d1a19ec8000 /src/t_list.c
parent38d6976c0340863daae3e67d549413ee0694c7aa (diff)
downloadredis-56ff70f8e0eec1f883166c50c877a1e78a7d3123.tar.gz
use server.unixtime instead of time(NULL) where possible (cluster.c not checked though)
Diffstat (limited to 'src/t_list.c')
-rw-r--r--src/t_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_list.c b/src/t_list.c
index 2be8074a7..6a16a6320 100644
--- a/src/t_list.c
+++ b/src/t_list.c
@@ -910,7 +910,7 @@ int getTimeoutFromObjectOrReply(redisClient *c, robj *object, time_t *timeout) {
return REDIS_ERR;
}
- if (tval > 0) tval += time(NULL);
+ if (tval > 0) tval += server.unixtime;
*timeout = tval;
return REDIS_OK;