diff --git a/debian/changelog b/debian/changelog index 2e085554..f93bc689 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,9 @@ -guh (0.8.1+201711270858~ecd6840~xenial) UNRELEASED; urgency=medium +guh (0.8.2) xenial; urgency=medium - * + * New hardware manager api + * Introduce push button authentication - -- Mon, 27 Nov 2017 07:58:39 +0000 + -- Simon Stürz Fri, 01 Dec 2017 07:56:26 +0100 guh (0.8.1) xenial; urgency=medium diff --git a/libguh/plugintimer.cpp b/libguh/plugintimer.cpp index 6e0f8838..5f4b0540 100644 --- a/libguh/plugintimer.cpp +++ b/libguh/plugintimer.cpp @@ -118,7 +118,30 @@ PluginTimer *PluginTimerManager::registerTimer(int seconds) QPointer pluginTimer = new PluginTimer(seconds, this); qCDebug(dcHardware()) << "Register timer" << pluginTimer->interval(); - // TODO: start timer depending on the schedule from other timers, loadbalancing + // TODO: schedule timer for load balancing + +// // Get min/max timer interval +// PluginTimer *shortestTimer = nullptr; +// PluginTimer *longestTimer = nullptr; +// foreach (PluginTimer *timer, m_timers) { +// if (!shortestTimer && !longestTimer) { +// shortestTimer = timer; +// longestTimer = timer; +// continue; +// } + +// if (timer->interval() < shortestTimer->interval()) { +// shortestTimer = timer; +// continue; +// } + +// if (timer->interval() > longestTimer->interval()) { +// longestTimer = timer; +// continue; +// } +// } + + m_timers.append(pluginTimer); return pluginTimer.data(); diff --git a/libguh/plugintimer.h b/libguh/plugintimer.h index b010b09d..f920f7b8 100644 --- a/libguh/plugintimer.h +++ b/libguh/plugintimer.h @@ -68,6 +68,7 @@ public slots: void reset(); void start(); void stop(); + };