]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
refactor: Sort k_statistics_fields
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 2 Oct 2022 11:26:22 +0000 (13:26 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 2 Oct 2022 11:26:22 +0000 (13:26 +0200)
src/core/Statistics.cpp

index 416f9c61e888855085504ab2b99d33be1e48e5b1..399bcb672530c586ce6c2e6b601420dfc608e112 100644 (file)
@@ -93,6 +93,8 @@ const StatisticsField k_statistics_fields[] = {
   FIELD(error_hashing_extra_file, "Error hashing extra file", FLAG_ERROR),
   FIELD(files_in_cache, nullptr, FLAG_NOZERO),
   FIELD(internal_error, "Internal error", FLAG_ERROR),
+  FIELD(local_storage_hit, nullptr),
+  FIELD(local_storage_miss, nullptr),
   FIELD(missing_cache_file, "Missing cache file", FLAG_ERROR),
   FIELD(multiple_source_files, "Multiple source files", FLAG_UNCACHEABLE),
   FIELD(no_input_file, "No input file", FLAG_UNCACHEABLE),
@@ -102,8 +104,6 @@ const StatisticsField k_statistics_fields[] = {
   FIELD(preprocessed_cache_hit, nullptr),
   FIELD(preprocessed_cache_miss, nullptr),
   FIELD(preprocessor_error, "Preprocessing failed", FLAG_UNCACHEABLE),
-  FIELD(local_storage_hit, nullptr),
-  FIELD(local_storage_miss, nullptr),
   FIELD(recache, "Forced recache", FLAG_UNCACHEABLE),
   FIELD(remote_storage_error, nullptr),
   FIELD(remote_storage_hit, nullptr),