Commit 8b578680 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Add units to disk/all/{read,write}

Apparently this was missing. Without these, formatting does not happen
and we get bad display of values.

BUG: 422643
BUG: 422644
parent 4715aea9
......@@ -335,12 +335,14 @@ void KSGRDIface::addAggregateSensors()
// However, we do not simply want to match disk/* as that would include duplicate devices.
sensor->setMatchSensors(QRegularExpression("^sd[a-z]+[0-9]+_[^/]*/Rate$"), QStringLiteral("rblk"));
sensor->setDescription(i18nc("@info", "Read accesses across all disk devices"));
sensor->setUnit(KSysGuard::utils::UnitKiloByteRate);
sensor = new AggregateSensor(diskAll, "write", i18nc("@title", "Disk Write Accesses"));
sensor->setShortName(i18nc("@title Disk Write Accesses", "Write"));
// TODO: See above.
sensor->setMatchSensors(QRegularExpression("^sd[a-z]+[0-9]+_[^/]*/Rate$"), QStringLiteral("wblk"));
sensor->setDescription(i18nc("@info", "Write accesses across all disk devices"));
sensor->setUnit(KSysGuard::utils::UnitKiloByteRate);
auto memPhysical = m_subsystems["mem"]->object("physical");
Q_ASSERT(memPhysical);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment