diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-19 01:10:11 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-19 01:10:11 +0000 |
commit | ad62ee74ff76d3abd4486260792134af0035ec4e (patch) | |
tree | 77271bd4d87291daf698cc6ce51dfda48d1df56f /net/disk_cache | |
parent | eee51b3c5f60f19f2394dba82403c010f7f252f6 (diff) | |
download | chromium_src-ad62ee74ff76d3abd4486260792134af0035ec4e.zip chromium_src-ad62ee74ff76d3abd4486260792134af0035ec4e.tar.gz chromium_src-ad62ee74ff76d3abd4486260792134af0035ec4e.tar.bz2 |
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
Diffstat (limited to 'net/disk_cache')
-rw-r--r-- | net/disk_cache/backend_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |