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
a3660ea8
Commit
a3660ea8
authored
Nov 18, 2020
by
Arjen Hiemstra
Browse files
Set update rate of daemon to 500ms rather than 2000ms
Since 2000ms is rather slow
parent
78430e23
Changes
1
Hide whitespace changes
Inline
Side-by-side
ksystemstats/ksysguarddaemon.cpp
View file @
a3660ea8
...
...
@@ -20,6 +20,8 @@
#include
"ksysguarddaemon.h"
#include
<chrono>
#include
<QDBusArgument>
#include
<QDBusConnection>
#include
<QDBusMessage>
...
...
@@ -41,6 +43,8 @@
#include
"ksysguard_ifaceadaptor.h"
#include
"client.h"
constexpr
auto
UpdateRate
=
std
::
chrono
::
milliseconds
{
500
};
KSysGuardDaemon
::
KSysGuardDaemon
()
:
m_serviceWatcher
(
new
QDBusServiceWatcher
(
this
))
{
...
...
@@ -57,7 +61,7 @@ KSysGuardDaemon::KSysGuardDaemon()
connect
(
m_serviceWatcher
,
&
QDBusServiceWatcher
::
serviceUnregistered
,
this
,
&
KSysGuardDaemon
::
onServiceDisconnected
);
auto
timer
=
new
QTimer
(
this
);
timer
->
setInterval
(
2000
);
timer
->
setInterval
(
UpdateRate
);
connect
(
timer
,
&
QTimer
::
timeout
,
this
,
&
KSysGuardDaemon
::
sendFrame
);
timer
->
start
();
}
...
...
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