From 2b69d338c321247c4d8ed7222aa18db9c03c0a15 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Sat, 31 Aug 2024 16:26:02 -0500 Subject: [PATCH] clean stats code a little --- stats.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stats.js b/stats.js index dc581da..a0a33a9 100644 --- a/stats.js +++ b/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; }