diff options
-rw-r--r-- | src/db.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -912,7 +912,8 @@ void expireGenericCommand(redisClient *c, long long basetime, int unit) { } void expireCommand(redisClient *c) { - expireGenericCommand(c,mstime(),UNIT_SECONDS); + long long now = server.hz >= 10 ? server.mstime: mstime(); + expireGenericCommand(c,now,UNIT_SECONDS); } void expireatCommand(redisClient *c) { |