Skip to content

Commit

Permalink
debug message count
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Feb 7, 2021
1 parent 76df4aa commit f6510d9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions html/planeObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -1313,6 +1313,15 @@ PlaneObject.prototype.updateData = function(now, last, data, init) {

// Update all of our data

if (data.messages < this.messages) {
if (binCraft) {
this.messages -= 65536;
} else {
this.msgs1090 = this.messages = data.messages;
}
}
if (this.messages && data.messages - this.messages > 500)
console.log(this.icao + ': old msgs: ' + this.messages + ' new msgs: ' + data.messages);
if (now - this.last > 0) {
if (this.receiver == "1090") {
const messageRate = (data.messages - this.msgs1090)/(now - this.last);
Expand Down

0 comments on commit f6510d9

Please sign in to comment.