Merge pull request #884 from feihtthief/fix_io_graph_speeds

This commit is contained in:
Jakob P. Liljenberg 2024-06-24 17:28:44 +02:00 committed by GitHub
commit 18487c3c3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1162,7 +1162,7 @@ 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);
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));