summaryrefslogtreecommitdiff
path: root/src/daemons/notes-stats.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemons/notes-stats.ts')
-rw-r--r--src/daemons/notes-stats.ts2
1 files changed, 1 insertions, 1 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 => {