summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/daemons/notes-stats.ts2
-rw-r--r--src/daemons/server-stats.ts2
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();