Commit a3660ea8 authored by Arjen Hiemstra's avatar Arjen Hiemstra

Set update rate of daemon to 500ms rather than 2000ms

Since 2000ms is rather slow
parent 78430e23
......@@ -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();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment