clean stats code a little
This commit is contained in:
parent
2150a4832e
commit
2b69d338c3
1 changed files with 2 additions and 2 deletions
4
stats.js
4
stats.js
|
@ -72,8 +72,8 @@ function calcStats(instance){
|
||||||
let online=false;
|
let online=false;
|
||||||
let i=0;
|
let i=0;
|
||||||
for(const thing of obj){
|
for(const thing of obj){
|
||||||
online=obj[i].online;
|
online=thing.online;
|
||||||
const stamp=obj[i].time;
|
const stamp=thing.time;
|
||||||
if(alltime===-1){
|
if(alltime===-1){
|
||||||
alltime=0;
|
alltime=0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue