diff options
| author | 2vg <mail@ni-vg.com> | 2018-07-27 17:33:21 +0900 |
|---|---|---|
| committer | 2vg <mail@ni-vg.com> | 2018-07-27 17:33:21 +0900 |
| commit | 43a7eb233c71793400e564a304b6b292467671c5 (patch) | |
| tree | 200c835d5c2f5cc8fcff27a0207e7ada42e81066 /src/daemons | |
| parent | memory usage excludes buffer and cache. (diff) | |
| download | misskey-43a7eb233c71793400e564a304b6b292467671c5.tar.gz misskey-43a7eb233c71793400e564a304b6b292467671c5.tar.bz2 misskey-43a7eb233c71793400e564a304b6b292467671c5.zip | |
fix: critical memory leak.
Diffstat (limited to 'src/daemons')
| -rw-r--r-- | src/daemons/server-stats.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/daemons/server-stats.ts b/src/daemons/server-stats.ts index a3351ac32f..afedafb295 100644 --- a/src/daemons/server-stats.ts +++ b/src/daemons/server-stats.ts @@ -35,6 +35,7 @@ export default function() { }; ev.emit('serverStats', stats); log.push(stats); + if (log.length > 50) log.shift(); } tick(); |