diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-25 22:22:40 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-25 22:22:40 +0000 |
commit | 003849a2a44f7e8c7ae7a081d7c6bc0c0f9b5a2d (patch) | |
tree | ce78812b125b779fb92ebe57bd311fd76a510bb5 /net | |
parent | b2afb86b95b2e6b415c6998bc1765d51c47bbe62 (diff) | |
download | chromium_src-003849a2a44f7e8c7ae7a081d7c6bc0c0f9b5a2d.zip chromium_src-003849a2a44f7e8c7ae7a081d7c6bc0c0f9b5a2d.tar.gz chromium_src-003849a2a44f7e8c7ae7a081d7c6bc0c0f9b5a2d.tar.bz2 |
Disk cache: fix the report of first-eviction data to include only
new users (so the file format has a valid create_time)
Histograms from dev channel (171) are incorrect.
Review URL: http://codereview.chromium.org/49032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12505 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/disk_cache/eviction.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/disk_cache/eviction.cc b/net/disk_cache/eviction.cc index 0075f5d..3706260 100644 --- a/net/disk_cache/eviction.cc +++ b/net/disk_cache/eviction.cc @@ -151,7 +151,7 @@ void Eviction::ReportTrimTimes(EntryImpl* entry) { (Time::Now() - entry->GetLastUsed()).InHours()); } - if (header_->create_time || !header_->lru.filled) { + if (header_->create_time && !header_->lru.filled) { // This is the first entry that we have to evict, generate some noise. header_->lru.filled = 1; backend_->FirstEviction(); |