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 i=0;
|
||||
for(const thing of obj){
|
||||
online=obj[i].online;
|
||||
const stamp=obj[i].time;
|
||||
online=thing.online;
|
||||
const stamp=thing.time;
|
||||
if(alltime===-1){
|
||||
alltime=0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue