round instead of floor for stats
This commit is contained in:
parent
4a29f8a92c
commit
93c0c968a9
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ fetch("/instances.json").then(_=>_.json()).then((json:{name:string,description?:
|
|||
const stats=document.createElement("div");
|
||||
stats.classList.add("flexltr");
|
||||
const span=document.createElement("span");
|
||||
span.innerText=`Uptime: All time: ${Math.floor(instance.uptime.alltime*100)}% This week: ${Math.floor(instance.uptime.weektime*100)}% Today: ${Math.floor(instance.uptime.daytime*100)}%`;
|
||||
span.innerText=`Uptime: All time: ${Math.round(instance.uptime.alltime*100)}% This week: ${Math.round(instance.uptime.weektime*100)}% Today: ${Math.round(instance.uptime.daytime*100)}%`;
|
||||
stats.append(span);
|
||||
statbox.append(stats);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue