X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/bdbdb02edb5aff16c3cbfb0fba31152d69e30160..afd0f06b755ff53ce91d1dabeca959655590d3f0:/src/rdb.c?ds=inline diff --git a/src/rdb.c b/src/rdb.c index bb9121c8..2c0feb6d 100644 --- a/src/rdb.c +++ b/src/rdb.c @@ -597,7 +597,7 @@ int rdbSave(char *filename) { dictEntry *de; char tmpfile[256]; int j; - time_t now = mstime(); + long long now = mstime(); FILE *fp; rio rdb; @@ -997,7 +997,7 @@ int rdbLoad(char *filename) { if ((expiretime = rdbLoadTime(&rdb)) == -1) goto eoferr; /* We read the time so we need to read the object type again. */ if ((type = rdbLoadType(&rdb)) == -1) goto eoferr; - /* the EXPIREITME opcode specifies time in seconds, so convert + /* the EXPIRETIME opcode specifies time in seconds, so convert * into milliesconds. */ expiretime *= 1000; } else if (type == REDIS_RDB_OPCODE_EXPIRETIME_MS) {