Fix bug 122499 "about:cache thinks expiration time of '0' means 'no expiration'". Changed 'no expiration' value to 0xFFFFFFFF. r=gagan, sr=darin.

This commit is contained in:
gordon%netscape.com 2002-02-18 23:05:16 +00:00
parent e26aed73cd
commit 25e54bb7cd
2 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@ nsAboutCache::VisitEntry(const char *deviceID,
// Expires time
mBuffer.Append("\n<b> Expires: </b>");
entryInfo->GetExpirationTime(&t);
if (t) {
if (t < 0xFFFFFFFF) {
PrintTimeString(buf, sizeof(buf), t);
mBuffer.Append(buf);
} else {

View File

@ -438,7 +438,7 @@ nsAboutCacheEntry::WriteCacheEntryDescription(nsIOutputStream *outputStream,
// Expiration Time
descriptor->GetExpirationTime(&u);
if (u) {
if (u < 0xFFFFFFFF) {
PrintTimeString(timeBuf, sizeof(timeBuf), u);
APPEND_ROW("expires", timeBuf);
} else {