diff options
author | Premysl Hruby <dfenze@gmail.com> | 2012-03-27 17:39:58 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-03-27 23:04:27 +0200 |
commit | 56ff70f8e0eec1f883166c50c877a1e78a7d3123 (patch) | |
tree | d1fbf57751ae5951384f75ff002f1d1a19ec8000 /src/t_list.c | |
parent | 38d6976c0340863daae3e67d549413ee0694c7aa (diff) | |
download | redis-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.c | 2 |
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; |