chore: formatter

This commit is contained in:
2026-09-30 14:26:59 +02:00
parent 10d763cfe5
commit 4a021d81ac
2 changed files with 17 additions and 17 deletions
+7 -8
View File
@@ -45,8 +45,7 @@ void Memory::tick() {
QStringLiteral("MemTotal: *(\\d+)"));
static const QRegularExpression reAvail(
QStringLiteral("MemAvailable: *(\\d+)"));
static const QRegularExpression reCached(QStringLiteral(
"Cached: *(\\d+)"));
static const QRegularExpression reCached(QStringLiteral("Cached: *(\\d+)"));
const QString text = QString::fromLatin1(data);
const auto totalMatch = reTotal.match(text);
@@ -78,14 +77,14 @@ void Memory::tick() {
const auto pgin = rePgin.match(vtext);
const auto pgout = rePgout.match(vtext);
if (pgin.hasMatch()) {
readKib = static_cast<quint64>(static_cast<double>(
pgin.captured(1).toULongLong()) *
pageKib);
readKib = static_cast<quint64>(
static_cast<double>(pgin.captured(1).toULongLong()) *
pageKib);
}
if (pgout.hasMatch()) {
writeKib = static_cast<quint64>(static_cast<double>(
pgout.captured(1).toULongLong()) *
pageKib);
writeKib = static_cast<quint64>(
static_cast<double>(pgout.captured(1).toULongLong()) *
pageKib);
}
}
}