Have timers be a trigger type in microseconds
Extract and generate timers in microseconds for all event triggers and
actions that take a timer as a parameter.
Tested:
Timers are created on events with timer triggers defined
Inspect that generated timers are created in microseconds
No timer is created for events without a timer trigger
Change-Id: I345f247782779ef142fe0d569632be2b6c11f0c3
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/zone.cpp b/control/zone.cpp
index fddca53..3960533 100644
--- a/control/zone.cpp
+++ b/control/zone.cpp
@@ -376,7 +376,7 @@
}
// Attach a timer to run the action of an event
auto timerConf = std::get<timerConfPos>(event);
- if (std::get<intervalPos>(timerConf) != seconds(0))
+ if (std::get<intervalPos>(timerConf) != microseconds(0))
{
addTimer(std::get<groupPos>(event),
std::get<actionsPos>(event),