Skip to content

Commit

Permalink
fix: Queued sanity timer was not what it was supposed to be
Browse files Browse the repository at this point in the history
  • Loading branch information
ztalbot2000 committed May 13, 2021
1 parent 068960b commit 0b9314a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cmd4PriorityPollingQueue.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let CMD4_ACC_TYPE_ENUM = require( "./lib/CMD4_ACC_TYPE_ENUM" ).CMD4_ACC_TYPE_ENU
let settings = require( "./cmd4Settings" );
const constants = require( "./cmd4Constants" );

const SANITY_TIMER_INTERVAL = 12000; // 2 minutes
const SANITY_TIMER_INTERVAL = 120000; // 2 minutes

// Pretty Colors
var chalk = require( "chalk" );
Expand Down Expand Up @@ -208,7 +208,7 @@ class Cmd4PriorityPollingQueue

} else
{
entry.accessory.log.info( `Poll failed: ${ error } for queue: ${ this.queueName } value: ${ properValue }` );
entry.accessory.log.info( `Poll failed: ${ error } for queue: ${ queue.queueName } value: ${ properValue }` );

// A response is expected for "Get" without update.
if ( entry.queueGetIsUpdate == false )
Expand Down Expand Up @@ -270,7 +270,7 @@ class Cmd4PriorityPollingQueue
{
entry.accessory.service.getCharacteristic( CMD4_ACC_TYPE_ENUM.properties[ entry.accTypeEnumIndex ].characteristic ).updateValue( properValue );
} else {
entry.accessory.log.info( `Poll failed: ${ error } for queue: ${ this.queueName } value: ${ properValue }` );
entry.accessory.log.info( `Poll failed: ${ error } for queue: ${ queue.queueName } value: ${ properValue }` );
}

// For the next one
Expand Down Expand Up @@ -482,7 +482,7 @@ class Cmd4PriorityPollingQueue
}
printQueueStats( queue )
{
let line = `QUEUE "${ this.queueName }" stats`;
let line = `QUEUE "${ queue.queueName }" stats`;
this.log.info( line );
this.log.info( `${ "=".repeat( line.length) }` );
this.log.info( `iterations: ${ queue.lowPriorityQueueCounter }` );
Expand Down

0 comments on commit 0b9314a

Please sign in to comment.