From 9ccf9a2496649e11dbf557b93e11d5fd9df33162 Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Wed, 15 Aug 2018 20:20:46 +0900
Subject: [PATCH] Fix #2229

---
 src/daemons/notes-stats.ts  | 2 +-
 src/daemons/server-stats.ts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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();