浏览代码

Fixed error in setting timestamps in previous commit.

ichrispa 9 年之前
父节点
当前提交
70571fdc76
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/server/ua_subscription.c

+ 3 - 2
src/server/ua_subscription.c

@@ -357,8 +357,9 @@ int MonitoredItem_QueueToDataChangeNotifications(UA_MonitoredItemNotification *d
         dst[queueSize].value.hasServerPicoseconds = UA_FALSE;
         dst[queueSize].value.hasServerTimestamp   = UA_TRUE;
         dst[queueSize].value.serverTimestamp      = UA_DateTime_now();
-        dst[queueSize].value.hasSourcePicoseconds = UA_TRUE;
-        dst[queueSize].value.hasSourceTimestamp   = UA_DateTime_now();
+        dst[queueSize].value.hasSourcePicoseconds = UA_FALSE;
+        dst[queueSize].value.hasSourceTimestamp   = UA_TRUE;
+        dst[queueSize].value.sourceTimestamp      = UA_DateTime_now();
         dst[queueSize].value.hasValue             = UA_TRUE;
         dst[queueSize].value.status = UA_STATUSCODE_GOOD;