Commit 217892dc authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent c24b1790
......@@ -84,6 +84,7 @@ async function checkIps() {
for (let i = 0; i < ips.length; i++) {
let status = await getWorkFloating(ips[i].Value)
await slee
status = parseInt(status)
switch (status) {
case 404:
......@@ -95,6 +96,7 @@ async function checkIps() {
case 0:
await aruba.RemovedByIp(ips[i].Value)
break
case 1:
// await addIPs(ips[i].Value)
break
......@@ -104,6 +106,11 @@ async function checkIps() {
}
}
async function sleep(millis) {
return new Promise(resolve => setTimeout(resolve, millis));
}
async function initToken() {
await aruba.init()
dc = aruba.getDc()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment