Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tp1de committed Dec 5, 2024
1 parent 1ba9005 commit a2acba7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ async function resp(url, urls, init, type, telegram) {
let r, typer, offsetr;

try {
let loops = 15;
if (init) loops = 40;
let loops = 5;
if (init) loops = 10;
for (let ii = 0; ii < loops; ii++) {
await adapter.delay(1000);
try { response = await ems_get(url); } catch (ee) { adapter.log.error(ee + " " + url); }
Expand All @@ -456,7 +456,7 @@ async function resp(url, urls, init, type, telegram) {
}
else adapter.log.debug(ii + " - " + type + "/" + typer + " : " + response);
//else if (ii == loops - 1) adapter.log.debug(ii + " - " + type + "/" + typer + " : " + response);
if (ii == 5 || ii == 20 || ii == 30) { await ems_put(urls, telegram); }
//if (ii == 5 || ii == 20 || ii == 30) { await ems_put(urls, telegram); }
}
} catch (e) { adapter.log.error(e); }

Expand Down

0 comments on commit a2acba7

Please sign in to comment.