diff --git a/src/btop_config.cpp b/src/btop_config.cpp index 3a54a7d..4f4ce0d 100644 --- a/src/btop_config.cpp +++ b/src/btop_config.cpp @@ -160,8 +160,8 @@ namespace Config { {"io_graph_combined", "#* Set to True to show combined read/write io graphs in io mode."}, - {"io_graph_speeds", "#* Set the top speed for the io graphs in MiB/s (100 by default), use format \"mountpoint:speed\" separate disks with whitespace \" \".\n" - "#* Example: \"/mnt/media:100 /:20 /boot:1\"."}, + {"io_graph_speeds", "#* Set the top speed for the io graphs in MiB/s (100 by default), use format \"device:\\speed\" separate disks with whitespace \" \".\n" + "#* Example: \"C:\\100 D:\\20 G:\\1\"."}, {"net_download", "#* Set fixed values for network graphs in Mebibits. Is only used if net_auto is also set to False."}, @@ -407,7 +407,7 @@ namespace Config { const auto maps = ssplit(value); bool all_good = true; for (const auto& map : maps) { - const auto map_split = ssplit(map, ':'); + const auto map_split = ssplit(map, '\\'); if (map_split.size() != 2) all_good = false; else if (map_split.at(0).empty() or not isint(map_split.at(1))) diff --git a/src/btop_draw.cpp b/src/btop_draw.cpp index e175a80..15e0b57 100644 --- a/src/btop_draw.cpp +++ b/src/btop_draw.cpp @@ -792,10 +792,10 @@ namespace Mem { if (not Config::getS("io_graph_speeds").empty()) { auto split = ssplit(Config::getS("io_graph_speeds")); for (const auto& entry : split) { - auto vals = ssplit(entry); - if (vals.size() == 2 and mem.disks.contains(vals.at(0)) and isint(vals.at(1))) + auto vals = ssplit(entry, '\\'); + if (vals.size() == 2 and mem.disks.contains(vals.at(0) + "\\") and isint(vals.at(1))) try { - custom_speeds[vals.at(0)] = std::stoi(vals.at(1)); + custom_speeds[vals.at(0) + "\\"] = std::stoi(vals.at(1)); } catch (const std::out_of_range&) { continue; } } diff --git a/src/btop_menu.cpp b/src/btop_menu.cpp index d895cf3..3f08689 100644 --- a/src/btop_menu.cpp +++ b/src/btop_menu.cpp @@ -438,10 +438,10 @@ namespace Menu { "equals 100 percent in the io graphs.", "(100 MiB/s by default).", "", - "Format: \"device:speed\" separate disks with", + "Format: \"device:\\speed\" separate disks with", "whitespace \" \".", "", - "Example: \"/dev/sda:100, /dev/sdb:20\"."}, + "Example: \"C:\\100, D:\\20\"."}, {"show_page", "If page memory should be shown in memory box.", "",