Bug 1110585 - Inconsistent timestamp in storage metadata file; r=bent

This commit is contained in:
Jan Varga 2015-01-08 23:38:53 +01:00
parent 98173efa0b
commit 8654bbb8b5

View File

@ -878,6 +878,10 @@ GetLastModifiedTime(nsIFile* aFile, int64_t* aTimestamp)
return rv;
}
// Need to convert from milliseconds to microseconds.
MOZ_ASSERT((INT64_MAX / PR_USEC_PER_MSEC) > timestamp);
timestamp *= int64_t(PR_USEC_PER_MSEC);
if (timestamp > *aTimestamp) {
*aTimestamp = timestamp;
}