signalk-polar-performance-plugin 0.0.47 → 0.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/plugin/index.js +1 -3
package/package.json
CHANGED
package/plugin/index.js
CHANGED
|
@@ -213,14 +213,12 @@ module.exports = function (app) {
|
|
|
213
213
|
function sendUpdates (perfObj) {
|
|
214
214
|
let values = []
|
|
215
215
|
let metas = []
|
|
216
|
-
let currentTime = new Date().getTime()
|
|
217
216
|
|
|
218
217
|
function addValue (path, value, meta) {
|
|
219
218
|
if (lastValues[path] !== value) {
|
|
220
219
|
values.push({
|
|
221
220
|
path: path,
|
|
222
|
-
value: roundDec(value)
|
|
223
|
-
timestamp: currentTime
|
|
221
|
+
value: roundDec(value)
|
|
224
222
|
})
|
|
225
223
|
if (meta) {
|
|
226
224
|
metas.push({ path: path, value: meta })
|