mirror of
https://github.com/fluencelabs/redis
synced 2025-06-13 01:01:22 +00:00
use server.unixtime instead of time(NULL) where possible (cluster.c not checked though)
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user