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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/plugin/index.js +1 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "signalk-polar-performance-plugin",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "description": "A plugin that calculates performance information based on a (CSV) polar diagram.",
5
5
  "main": "plugin/index.js",
6
6
  "scripts": {
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 })