1
Fork 0

remove logs and run fetch at intervals
All checks were successful
/ deploy (push) Successful in 6s

This commit is contained in:
toufic ar 2026-02-05 22:50:28 +02:00
parent b0786a03a9
commit 29b70fcbd8
Signed by: toufic ar
SSH key fingerprint: SHA256:/NaO5I1nG3gYKzrzSiTYIdRyaIYxDWfr1U+d+yfJ/4k

View file

@ -110,14 +110,13 @@
</div> </div>
</body> </body>
<script> <script>
async function fetchConnections() { async function fetchSnowflakeConnections() {
try { try {
const res = await fetch("https://tor.toufy.me/metrics.php", { const res = await fetch("https://tor.toufy.me/metrics.php", {
method: "GET", method: "GET",
headers: { Accept: "application/json" } headers: { Accept: "application/json" }
}); });
if (!res.ok) { if (!res.ok) {
console.log(res);
snowflake_conns.innerHTML = 0; snowflake_conns.innerHTML = 0;
return; return;
} }
@ -126,6 +125,9 @@
snowflake_conns.innerHTML = 0; snowflake_conns.innerHTML = 0;
} }
} }
fetchConnections(); fetchSnowflakeConnections();
setInterval(() => {
fetchSnowflakeConnections();
}, 10000);
</script> </script>
</html> </html>