Skip to content

Commit

Permalink
#339: Log successful packet send stats
Browse files Browse the repository at this point in the history
  • Loading branch information
tagyoureit committed Aug 27, 2021
1 parent aea3287 commit 870e824
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 7.3.1
1. Influx 2.0 support

## 7.3
1. Dynamic chlorinating % based on ORP demand for Nixie
2. Docker creation updates
Expand Down
2 changes: 1 addition & 1 deletion controller/comms/Comms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,11 +483,11 @@ export class SendRecieveBuffer {
logger.verbose(`Wrote packet[${bytes}].Retries remaining: ${msg.remainingTries} `);
// We have all the success we are going to get so if the call succeeded then
// don't set the waiting packet when we aren't actually waiting for a response.
conn.buffer.counter.sndSuccess++;
if (!msg.requiresResponse) {
// As far as we know the message made it to OCP.
conn.buffer._waitingPacket = null;
if (typeof msg.onComplete === 'function') msg.onComplete(err, undefined);
conn.buffer.counter.sndSuccess++;

}
else if (msg.remainingTries >= 0) {
Expand Down

0 comments on commit 870e824

Please sign in to comment.