From ad62ee74ff76d3abd4486260792134af0035ec4e Mon Sep 17 00:00:00 2001 From: "rvargas@google.com" Date: Thu, 19 Mar 2009 01:10:11 +0000 Subject: Disk cache: Store the stats only once every five minutes. Review URL: http://codereview.chromium.org/48171 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12070 0039d316-1c4b-4281-b951-d872f2087c98 --- net/disk_cache/backend_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/disk_cache') diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc index 5801d40..9d9628d 100644 --- a/net/disk_cache/backend_impl.cc +++ b/net/disk_cache/backend_impl.cc @@ -731,7 +731,7 @@ void BackendImpl::OnStatsTimer() { } // Save stats to disk at 5 min intervals. - if (time % 10) + if (time % 10 == 0) stats_.Store(); } -- cgit v1.1