Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1132)

Unified Diff: net/disk_cache/blockfile/stats.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698