For bug 75113, moving cache device usage report in about:cache. sr=darin.

This commit is contained in:
gordon%netscape.com 2001-05-19 01:46:20 +00:00
Родитель 3584203896
Коммит 95193c7308
1 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -202,27 +202,23 @@ nsAboutCache::VisitDevice(const char *deviceID,
// Write out cache info
mBuffer.Append("<table>\n<tr><td><b>Usage report:</b></td>\n");
deviceInfo->GetUsageReport(getter_Copies(str));
mBuffer.Append("<td>");
mBuffer.Append(str);
mBuffer.Append("</td>\n</tr>\n");
mBuffer.Append("<table>\n");
mBuffer.Append("\n<tr><td><b>Number of entries:</b></td>\n");
mBuffer.Append("\n<tr><td><b>Number of entries: </b></td>\n");
value = 0;
deviceInfo->GetEntryCount(&value);
mBuffer.Append("<td><tt>");
mBuffer.AppendInt(value);
mBuffer.Append("</tt></td>\n</tr>\n");
mBuffer.Append("\n<tr><td><b>Maximum storage size:</b></td>\n");
mBuffer.Append("\n<tr><td><b>Maximum storage size: </b></td>\n");
value = 0;
deviceInfo->GetMaximumSize(&value);
mBuffer.Append("<td><tt>");
mBuffer.AppendInt(value);
mBuffer.Append("</tt></td>\n</tr>\n");
mBuffer.Append(" Bytes</tt></td>\n</tr>\n");
mBuffer.Append("\n<tr><td><b>Storage in use:</b></td>\n");
mBuffer.Append("\n<tr><td><b>Storage in use: </b></td>\n");
mBuffer.Append("<td><tt>");
value = 0;
deviceInfo->GetTotalSize(&value);
@ -231,6 +227,10 @@ nsAboutCache::VisitDevice(const char *deviceID,
mBuffer.Append("</table>\n");
deviceInfo->GetUsageReport(getter_Copies(str));
mBuffer.Append(str);
mBuffer.Append("\n<br>");
if (mDeviceID.IsEmpty()) {
mBuffer.Append("\n<a href=\"about:cache?device=");
mBuffer.Append(deviceID);