Skip to content
Snippets Groups Projects
Commit 9ccf9a24 authored by syuilo's avatar syuilo
Browse files

Fix #2229

parent 78563ef9
Branches stable
Tags 2024.5.1
No related merge requests found
......@@ -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 => {
......
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment