Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
libksysguard
Commits
6b159124
Commit
6b159124
authored
Mar 03, 2021
by
David Redondo
🏎
Browse files
Conversion for new uptime sensors
parent
a4a7ff98
Changes
2
Hide whitespace changes
Inline
Side-by-side
autotests/sensorfacecontrollertest.cpp
View file @
6b159124
...
...
@@ -188,6 +188,16 @@ private Q_SLOTS:
QStringLiteral
(
"gpu/gpu6/usage"
),
QStringLiteral
(
"gpu/gpu7/usage"
),
};
QTest
::
addRow
(
"uptime"
)
<<
QJsonArray
{
QStringLiteral
(
"uptime"
),
QStringLiteral
(
"system/uptime/uptime"
),
}
<<
QJsonArray
{
QStringLiteral
(
"os/system/uptime"
),
QStringLiteral
(
"os/system/uptime"
),
};
}
void
testSensorIdConversion
()
...
...
faces/SensorFaceController.cpp
View file @
6b159124
...
...
@@ -178,6 +178,7 @@ SensorFaceControllerPrivate::SensorFaceControllerPrivate()
{
QRegularExpression
(
QStringLiteral
(
"nvidia/(.*)/processorClock$"
)),
QStringLiteral
(
"gpu/
\\
1/coreFrequency"
)},
{
QRegularExpression
(
QStringLiteral
(
"nvidia/(.*)/(memory|sharedMemory)$"
)),
QStringLiteral
(
"gpu/
\\
1/usedVram"
)},
{
QRegularExpression
(
QStringLiteral
(
"nvidia/(.*)/(encoderUsage|decoderUsage)$"
)),
QStringLiteral
(
"gpu/
\\
1/usage"
)},
{
QRegularExpression
(
QStringLiteral
(
"(uptime|system/uptime/uptime)$"
)),
QStringLiteral
(
"os/system/uptime"
)},
};
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment