From f90a2d0d8f6c5cf0f4bea35f7f8801c8ae90b8e2 Mon Sep 17 00:00:00 2001
From: Martin Killenberg <martin.killenberg@desy.de>
Date: Thu, 26 Mar 2020 16:59:02 +0100
Subject: [PATCH] fixed demo for status monitor (was not setting time stamps)

---
 example_status_monitor/demoStatusMonitor.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/example_status_monitor/demoStatusMonitor.cc b/example_status_monitor/demoStatusMonitor.cc
index 2fe80895..06ea2280 100644
--- a/example_status_monitor/demoStatusMonitor.cc
+++ b/example_status_monitor/demoStatusMonitor.cc
@@ -35,6 +35,9 @@ struct SimulationModule : public ctk::ApplicationModule {
       }
 
       temperature += direction * 1; // one dregree steps
+      setCurrentVersionNumber({}); // We generate data without trigger or other input.
+                                   // So we must update the version number manually.
+                                   // This automatically updates the time stamp as well.
       temperature.write();
       usleep(100000);
     }
-- 
GitLab