summaryrefslogtreecommitdiffstats
path: root/src/btop_config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/btop_config.cpp')
-rw-r--r--src/btop_config.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/btop_config.cpp b/src/btop_config.cpp
index 5fed33f..fd28f67 100644
--- a/src/btop_config.cpp
+++ b/src/btop_config.cpp
@@ -21,6 +21,7 @@ tab-size = 4
#include <fstream>
#include <ranges>
#include <string_view>
+#include <utility>
#include <fmt/core.h>
@@ -217,7 +218,7 @@ namespace Config {
#endif
};
- unordered_flat_map<std::string_view, string> strings = {
+ std::unordered_map<std::string_view, string> strings = {
{"color_theme", "Default"},
{"shown_boxes", "cpu mem net proc"},
{"graph_symbol", "braille"},
@@ -253,9 +254,9 @@ namespace Config {
{"show_gpu_info", "Auto"}
#endif
};
- unordered_flat_map<std::string_view, string> stringsTmp;
+ std::unordered_map<std::string_view, string> stringsTmp;
- unordered_flat_map<std::string_view, bool> bools = {
+ std::unordered_map<std::string_view, bool> bools = {
{"theme_background", true},
{"truecolor", true},
{"rounded_corners", true},
@@ -307,9 +308,9 @@ namespace Config {
{"gpu_mirror_graph", true},
#endif
};
- unordered_flat_map<std::string_view, bool> boolsTmp;
+ std::unordered_map<std::string_view, bool> boolsTmp;
- unordered_flat_map<std::string_view, int> ints = {
+ std::unordered_map<std::string_view, int> ints = {
{"update_ms", 2000},
{"net_download", 100},
{"net_upload", 100},
@@ -320,7 +321,7 @@ namespace Config {
{"proc_selected", 0},
{"proc_last_selected", 0},
};
- unordered_flat_map<std::string_view, int> intsTmp;
+ std::unordered_map<std::string_view, int> intsTmp;
bool _locked(const std::string_view name) {
atomic_wait(writelock, true);