This commit is contained in:
parent
b0786a03a9
commit
29b70fcbd8
1 changed files with 5 additions and 3 deletions
|
|
@ -110,14 +110,13 @@
|
|||
</div>
|
||||
</body>
|
||||
<script>
|
||||
async function fetchConnections() {
|
||||
async function fetchSnowflakeConnections() {
|
||||
try {
|
||||
const res = await fetch("https://tor.toufy.me/metrics.php", {
|
||||
method: "GET",
|
||||
headers: { Accept: "application/json" }
|
||||
});
|
||||
if (!res.ok) {
|
||||
console.log(res);
|
||||
snowflake_conns.innerHTML = 0;
|
||||
return;
|
||||
}
|
||||
|
|
@ -126,6 +125,9 @@
|
|||
snowflake_conns.innerHTML = 0;
|
||||
}
|
||||
}
|
||||
fetchConnections();
|
||||
fetchSnowflakeConnections();
|
||||
setInterval(() => {
|
||||
fetchSnowflakeConnections();
|
||||
}, 10000);
|
||||
</script>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue