Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bartbutenaers committed Feb 27, 2017
1 parent 9e29030 commit dd93367
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
Binary file added images/speed1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/speed2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/speed3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/speed4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions msg_speed.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,14 @@ module.exports = function(RED) {

node.circularBuffer.enq(node.msgCount);

// Update the status with the last message count (only if it has changed)
// Update the status in the editor with the last message count (only if it has changed)
if (node.prevTotalMsgCount != node.totalMsgCount) {
node.status({fill:"green",shape:"dot",text:" " + node.totalMsgCount + "/" + node.frequency });
node.send({ payload: node.totalMsgCount, frequency: node.frequency });
node.prevTotalMsgCount = node.totalMsgCount;
}

node.send({ payload: node.totalMsgCount, frequency: node.frequency });

if (RED.settings.verbose) {
console.log(new Date().toISOString() + " " + node.totalMsgCount);
}
Expand Down

0 comments on commit dd93367

Please sign in to comment.