Bug 457906: browser.cache.disk.capacity MBs are calculated incorrectly. r=gavin

This commit is contained in:
Magnus Melin
2008-10-12 18:33:36 +03:00
parent b055200172
commit 7948fb12a8
2 changed files with 2 additions and 3 deletions

View File

@@ -163,7 +163,7 @@ var gAdvancedPane = {
readCacheSize: function ()
{
var preference = document.getElementById("browser.cache.disk.capacity");
return preference.value / 1000;
return preference.value / 1024;
},
/**
@@ -174,7 +174,7 @@ var gAdvancedPane = {
{
var cacheSize = document.getElementById("cacheSize");
var intValue = parseInt(cacheSize.value, 10);
return isNaN(intValue) ? 0 : intValue * 1000;
return isNaN(intValue) ? 0 : intValue * 1024;
},
/**