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
390c02f6
Commit
390c02f6
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
9cf7530b
Changes
2
Hide whitespace changes
Inline
Side-by-side
systemstats/AggregateSensor.cpp
View file @
390c02f6
...
...
@@ -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
())
{
...
...
systemstats/AggregateSensor.h
View file @
390c02f6
...
...
@@ -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
.
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