Title: [122570] trunk/Source/WebKit2
Revision
122570
Author
[email protected]
Date
2012-07-13 06:41:51 -0700 (Fri, 13 Jul 2012)

Log Message

[GTK] Fix disk cache size computation in WebKit2
https://bugs.webkit.org/show_bug.cgi?id=91226

Reviewed by Xan Lopez.

We are passing the free disk space value in bytes to
calculateCacheSizes() which expects values in MB.

* WebProcess/gtk/WebProcessGtk.cpp:
(WebKit::WebProcess::platformSetCacheModel):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (122569 => 122570)


--- trunk/Source/WebKit2/ChangeLog	2012-07-13 12:56:44 UTC (rev 122569)
+++ trunk/Source/WebKit2/ChangeLog	2012-07-13 13:41:51 UTC (rev 122570)
@@ -1,5 +1,18 @@
 2012-07-13  Carlos Garcia Campos  <[email protected]>
 
+        [GTK] Fix disk cache size computation in WebKit2
+        https://bugs.webkit.org/show_bug.cgi?id=91226
+
+        Reviewed by Xan Lopez.
+
+        We are passing the free disk space value in bytes to
+        calculateCacheSizes() which expects values in MB.
+
+        * WebProcess/gtk/WebProcessGtk.cpp:
+        (WebKit::WebProcess::platformSetCacheModel):
+
+2012-07-13  Carlos Garcia Campos  <[email protected]>
+
         [GTK] WebKit2 crash when going back/forward
         https://bugs.webkit.org/show_bug.cgi?id=91220
 

Modified: trunk/Source/WebKit2/WebProcess/gtk/WebProcessGtk.cpp (122569 => 122570)


--- trunk/Source/WebKit2/WebProcess/gtk/WebProcessGtk.cpp	2012-07-13 12:56:44 UTC (rev 122569)
+++ trunk/Source/WebKit2/WebProcess/gtk/WebProcessGtk.cpp	2012-07-13 13:41:51 UTC (rev 122570)
@@ -90,7 +90,7 @@
 
     SoupSession* session = WebCore::ResourceHandle::defaultSession();
     SoupCache* cache = reinterpret_cast<SoupCache*>(soup_session_get_feature(session, SOUP_TYPE_CACHE));
-    uint64_t diskFreeSize = getCacheDiskFreeSize(cache);
+    uint64_t diskFreeSize = getCacheDiskFreeSize(cache) / 1024 / 1024;
 
     uint64_t memSize = getMemorySize();
     calculateCacheSizes(cacheModel, memSize, diskFreeSize,
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to