X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/c1db214eeb2b7385c32889e17748429fcbe5cbae..31f2ecf436eca8eaf12445c6ed73b1eb49eccf6d:/src/t_list.c?ds=sidebyside diff --git a/src/t_list.c b/src/t_list.c index 2be8074a..6a16a632 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;