| Index: net/disk_cache/blockfile/stats.cc
|
| diff --git a/net/disk_cache/blockfile/stats.cc b/net/disk_cache/blockfile/stats.cc
|
| index eaaf75aa70d3c57c2165ddbcc9bfdc4a7f5d3b3c..9987e90ae11fdf7f2a6053de6cf99198f3e8c7d2 100644
|
| --- a/net/disk_cache/blockfile/stats.cc
|
| +++ b/net/disk_cache/blockfile/stats.cc
|
| @@ -40,29 +40,12 @@ int LogBase2(int32 number) {
|
|
|
| // WARNING: Add new stats only at the end, or change LoadStats().
|
| static const char* kCounterNames[] = {
|
| - "Open miss",
|
| - "Open hit",
|
| - "Create miss",
|
| - "Create hit",
|
| - "Resurrect hit",
|
| - "Create error",
|
| - "Trim entry",
|
| - "Doom entry",
|
| - "Doom cache",
|
| - "Invalid entry",
|
| - "Open entries",
|
| - "Max entries",
|
| - "Timer",
|
| - "Read data",
|
| - "Write data",
|
| - "Open rankings",
|
| - "Get rankings",
|
| - "Fatal error",
|
| - "Last report",
|
| - "Last report timer",
|
| - "Doom recent entries",
|
| - "unused"
|
| -};
|
| + "Open miss", "Open hit", "Create miss", "Create hit",
|
| + "Resurrect hit", "Create error", "Trim entry", "Doom entry",
|
| + "Doom cache", "Invalid entry", "Open entries", "Max entries",
|
| + "Timer", "Read data", "Write data", "Open rankings",
|
| + "Get rankings", "Fatal error", "Last report", "Last report timer",
|
| + "Doom recent entries", "unused"};
|
| COMPILE_ASSERT(arraysize(kCounterNames) == disk_cache::Stats::MAX_COUNTER,
|
| update_the_names);
|
|
|
| @@ -291,7 +274,7 @@ int Stats::GetStatsBucket(int32 size) {
|
| return (size - 20 * 1024) / 4096 + 11;
|
|
|
| // From this point on, use a logarithmic scale.
|
| - int result = LogBase2(size) + 1;
|
| + int result = LogBase2(size) + 1;
|
|
|
| COMPILE_ASSERT(kDataSizesLength > 16, update_the_scale);
|
| if (result >= kDataSizesLength)
|
|
|