fix dumb typo and fix CSS
This commit is contained in:
parent
aeb7915d28
commit
f05de33f8d
2 changed files with 8 additions and 8 deletions
8
stats.js
8
stats.js
|
@ -28,7 +28,7 @@ async function observe(instances){
|
|||
}
|
||||
if(!api||api===""){
|
||||
|
||||
setSatus(instance,false);
|
||||
setStatus(instance,false);
|
||||
console.warn(instance.name+" does not resolve api URL");
|
||||
setTimeout(_=>{resolveinstance(instance)},1000*60*30,);
|
||||
return
|
||||
|
@ -37,7 +37,7 @@ async function observe(instances){
|
|||
api+=api.endsWith("/")?"":"/"
|
||||
function check(){
|
||||
fetch(api+"ping").then(_=>{
|
||||
setSatus(instance,_.ok);
|
||||
setStatus(instance,_.ok);
|
||||
})
|
||||
}
|
||||
setTimeout(
|
||||
|
@ -56,7 +56,7 @@ async function observe(instances){
|
|||
await Promise.allSettled(promlist);
|
||||
for(const key of Object.keys(uptimeObject)){
|
||||
if(!active.has(key)){
|
||||
setSatus(key,false);
|
||||
setStatus(key,false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ function calcStats(instance){
|
|||
* @param {string|Object} instance
|
||||
* @param {boolean} status
|
||||
*/
|
||||
function setSatus(instance,status){
|
||||
function setStatus(instance,status){
|
||||
let name=instance.name;
|
||||
if(typeof instance==="string" ){
|
||||
name=instance;
|
||||
|
|
|
@ -2015,10 +2015,10 @@ form div{
|
|||
.instance{
|
||||
img{
|
||||
width:.6in;
|
||||
height:.6in;
|
||||
margin-right:.1in;
|
||||
border-radius:.2in;
|
||||
border:solid .03in var(--black);
|
||||
height:.6in;
|
||||
margin-right:.1in;
|
||||
border-radius:.2in;
|
||||
border:solid .03in var(--black);
|
||||
}
|
||||
h2{
|
||||
font-size:.25in;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue