node-opcua-utils
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "node-opcua-utils", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "pure nodejs OPCUA SDK - module -utils", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -18,3 +18,3 @@ "use strict"; | ||
get_clock_tick = function get_clock_tick() { | ||
return (new Date()).getTime(); | ||
return Date.now(); | ||
}; | ||
@@ -21,0 +21,0 @@ } |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict" |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -10,3 +10,3 @@ "use strict"; | ||
this._counter = 0; | ||
this._current_time = new Date(); | ||
this._current_time = Date.now(); | ||
this._visit_subscriber_b = this._visit_subscriber.bind(this); | ||
@@ -44,3 +44,3 @@ this._timer = null; | ||
var self = this; | ||
self._current_time = new Date(); | ||
self._current_time = Date.now(); | ||
@@ -60,3 +60,3 @@ var expired_subscribers = _.filter(self._subscriber, function (watchDogData) { | ||
}); | ||
self._current_time = new Date(); | ||
//xx self._current_time = Date.now(); | ||
}; | ||
@@ -68,5 +68,5 @@ | ||
assert(_.isNumber(self._watchDogData.key)); | ||
self._watchDogData.last_seen = new Date(); | ||
self._watchDogData.last_seen = Date.now(); | ||
if (self.onClientSeen) { | ||
self.onClientSeen(self._watchDogData .last_seen); | ||
self.onClientSeen(new Date(self._watchDogData.last_seen)); | ||
} | ||
@@ -93,3 +93,3 @@ } | ||
self._current_time = new Date(); | ||
self._current_time = Date.now(); | ||
@@ -117,3 +117,3 @@ timeout = timeout || 1000; | ||
if (subscriber.onClientSeen) { | ||
subscriber.onClientSeen(subscriber._watchDogData .last_seen); | ||
subscriber.onClientSeen(new Date(subscriber._watchDogData.last_seen)); | ||
} | ||
@@ -120,0 +120,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19654
17
475