Skip to content

Commit

Permalink
Limit health interval to 5s minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm1957 committed Dec 21, 2024
1 parent 76b4f4d commit 3bfaa9e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,12 @@ is true when TV is on and false if TV is off
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->
### **WORK IN PROGRESS**

* (mcm1957) Health-interval limited to 5s minimum.
* (mcm1957) Compact mode has been disabled due to outdated timer handling.
* (mcm1957) Dependencies have been updated

### 2.3.1 (2024-12-03)

* (Feuer-Sturm) Some default values and limits of paramaters have been corrected.
Expand Down
2 changes: 1 addition & 1 deletion io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
"tier": 2,
"mode": "daemon",
"type": "multimedia",
"compact": true,
"compact": false,
"connectionType": "local",
"dataSource": "poll",
"dependencies": [
Expand Down
3 changes: 3 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,9 @@ function main() {
adapter.log.debug(`adapter.config = ${JSON.stringify(adapter.config)}`);
if (adapter.config.healthInterval < 1) {
healthInterval = false;
} else if (adapter.config.healthInterval < 5000) {
adapter.log.info(`Health-Interval must not be less than 5s; setting adjusted.`);
adapter.config.healthInterval = 5000;
}
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir);
Expand Down

0 comments on commit 3bfaa9e

Please sign in to comment.