Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KSysGuard
Commits
79b70b54
Commit
79b70b54
authored
Oct 07, 2020
by
Arjen Hiemstra
Browse files
Expose the number of matched sensors on aggregate sensors
So it can be used when calculating values for aggregates.
parent
e1fe8f46
Changes
2
Hide whitespace changes
Inline
Side-by-side
libkstats/AggregateSensor.cpp
View file @
79b70b54
...
...
@@ -174,6 +174,11 @@ void AggregateSensor::removeSensor(const QString &sensorPath)
}
}
int
AggregateSensor
::
matchCount
()
const
{
return
m_sensors
.
size
();
}
void
AggregateSensor
::
updateSensors
()
{
if
(
!
m_matchObjects
.
isValid
())
{
...
...
libkstats/AggregateSensor.h
View file @
79b70b54
...
...
@@ -54,6 +54,8 @@ public:
void
addSensor
(
SensorProperty
*
sensor
);
void
removeSensor
(
const
QString
&
sensorPath
);
int
matchCount
()
const
;
private:
void
updateSensors
();
void
sensorDataChanged
(
SensorProperty
*
sensor
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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