From 854bfba7c983fafa32dc6b76a43dda3d8ee27bc5 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Fri, 17 Jul 2015 11:16:03 -0700 Subject: [PATCH] Value: Set last_change field. --- src/Value.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Value.cpp b/src/Value.cpp index 6ebb8c86f1..7cf09eb848 100644 --- a/src/Value.cpp +++ b/src/Value.cpp @@ -7,13 +7,18 @@ #include "nt_Value.h" #include "Value_internal.h" +#include "support/timestamp.h" using namespace nt; -Value::Value() { m_val.type = NT_UNASSIGNED; } +Value::Value() { + m_val.type = NT_UNASSIGNED; + m_val.last_change = Now(); +} Value::Value(NT_Type type, const private_init&) { m_val.type = type; + m_val.last_change = Now(); if (m_val.type == NT_BOOLEAN_ARRAY) m_val.data.arr_boolean.arr = nullptr; else if (m_val.type == NT_DOUBLE_ARRAY)