summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-13 01:50:30 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-13 01:50:30 +0000
commitfd765a5c78bbf73ce9acbc2153e785fdfb05981f (patch)
treed61f646e3c4281eb2931138817c92a464768f0b1 /net
parenta424570b3795dd23da2e13f251b45f9c541e7c4e (diff)
downloadchromium_src-fd765a5c78bbf73ce9acbc2153e785fdfb05981f.zip
chromium_src-fd765a5c78bbf73ce9acbc2153e785fdfb05981f.tar.gz
chromium_src-fd765a5c78bbf73ce9acbc2153e785fdfb05981f.tar.bz2
Disk cache: Don't add more people to the cache size experiment.
At this point, adding more people just add noise to the experiment. After a little over a month, most users still have not filled up their allowed cache. Review URL: http://codereview.chromium.org/20337 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9728 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/disk_cache/backend_impl.cc12
1 files changed, 2 insertions, 10 deletions
diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc
index 5fbb390..a078bc4 100644
--- a/net/disk_cache/backend_impl.cc
+++ b/net/disk_cache/backend_impl.cc
@@ -133,16 +133,8 @@ void InitExperiment(int* stored_value) {
if (*stored_value)
return;
- srand(static_cast<int>(Time::Now().ToInternalValue()));
- int option = rand() % 10;
-
- // Values used by the current experiment are 1 through 4.
- if (option > 2) {
- // 70% will be here.
- *stored_value = 1;
- } else {
- *stored_value = option + 2;
- }
+ // Don't add more people to the experiment; send them to group 1.
+ *stored_value = 1;
}
} // namespace