use server.unixtime instead of time(NULL) where possible (cluster.c not checked though)

This commit is contained in:
Premysl Hruby
2012-03-27 17:39:58 +02:00
parent 024f213b12
commit d194905449
5 changed files with 20 additions and 23 deletions

View File

@ -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;