1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

web: improve logging

This commit is contained in:
Steffen Vogel 2017-08-27 17:08:00 +02:00
parent 56c6855888
commit 58fca52b2c

View file

@ -273,8 +273,6 @@ function wsConnect(node)
conn.onmessage = function(e) {
var msgs = Msg.fromArrayBufferVector(e.data);
console.log('Received ' + msgs.length + ' messages with ' + msgs[0].data.length + ' values from id ' + msgs[0].id + ' with timestamp ' + msgs[0].timestamp);
for (var j = 0; j < plotData.length; j++) {
// remove old
while (plotData[j].length > 0 && plotData[j][0][0] < (Date.now() - xPast))
@ -283,6 +281,8 @@ function wsConnect(node)
for (var j = 0; j < msgs.length; j++) {
var msg = msgs[j];
console.log('Received message with ' + msg.data.length + ' values from id ' + msg.id + ' with timestamp ' + new Date(msg.timestamp).toString());
if (msg.id !== currentNode.id)
continue;