Skip to content
Snippets Groups Projects
Commit cf6195e9 authored by David Redondo's avatar David Redondo
Browse files

Fix sensors names of aggregate disk rates

These should be 'read' and 'write' instead of readRate and 'writeRate'.
This matches the old sensor names and what the applet expects.
BUG:432851


(cherry picked from commit ccca59fd)
parent 4df803d7
No related branches found
Tags v5.21.0
1 merge request!1Revert commit to 5.21
......@@ -253,13 +253,13 @@ void DisksPlugin::addAggregateSensors()
used->setMax(total->value().toULongLong());
used->setMatchSensors(QRegularExpression("^(?!all).*$"), "used");
auto readRate = new AggregateSensor(allDisks, "readRate", i18nc("@title", "Read Rate"));
auto readRate = new AggregateSensor(allDisks, "read", i18nc("@title", "Read Rate"));
readRate->setShortName(i18nc("@title Short for 'Read Rate'", "Read"));
readRate->setUnit(KSysGuard::UnitByteRate);
readRate->setVariantType(QVariant::Double);
readRate->setMatchSensors(QRegularExpression("^(?!all).*$"), "read");
auto writeRate = new AggregateSensor(allDisks, "writeRate", i18nc("@title", "Write Rate"));
auto writeRate = new AggregateSensor(allDisks, "write", i18nc("@title", "Write Rate"));
writeRate->setShortName(i18nc("@title Short for 'Write Rate'", "Write"));
writeRate->setUnit(KSysGuard::UnitByteRate);
writeRate->setVariantType(QVariant::Double);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment