diff --git a/src/daemons/notes-stats.ts b/src/daemons/notes-stats.ts index 1de7a98523..3d2c4820a6 100644 --- a/src/daemons/notes-stats.ts +++ b/src/daemons/notes-stats.ts @@ -12,7 +12,7 @@ export default function() { p.on('message', stats => { ev.emit('notesStats', stats); log.push(stats); - if (log.length > 100) log.pop(); + if (log.length > 100) log.shift(); }); ev.on('requestNotesStatsLog', id => { diff --git a/src/daemons/server-stats.ts b/src/daemons/server-stats.ts index 31560935b2..af935d35b2 100644 --- a/src/daemons/server-stats.ts +++ b/src/daemons/server-stats.ts @@ -37,7 +37,7 @@ export default function() { }; ev.emit('serverStats', stats); log.push(stats); - if (log.length > 50) log.pop(); + if (log.length > 50) log.shift(); } tick();