return (time_t)t32;
}
-int rdbSaveMillisecondTime(rio *rdb, time_t t) {
+int rdbSaveMillisecondTime(rio *rdb, long long t) {
int64_t t64 = (int64_t) t;
return rdbWriteRaw(rdb,&t64,8);
}
dictEntry *de;
char tmpfile[256];
int j;
- time_t now = mstime();
+ long long now = mstime();
FILE *fp;
rio rdb;
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) {