summaryrefslogtreecommitdiff
path: root/src/daemons/server-stats.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-06-18 09:54:53 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-06-18 09:54:53 +0900
commit80e5645a84cc60d76f79c48a3d565fb66ad88643 (patch)
tree1e2fc1c6c9ffb7989c5db997eae906c013433eda /src/daemons/server-stats.ts
parentMerge pull request #1738 from rinsuki/features/ts-noimplicitany-true (diff)
downloadmisskey-80e5645a84cc60d76f79c48a3d565fb66ad88643.tar.gz
misskey-80e5645a84cc60d76f79c48a3d565fb66ad88643.tar.bz2
misskey-80e5645a84cc60d76f79c48a3d565fb66ad88643.zip
wip
Diffstat (limited to 'src/daemons/server-stats.ts')
-rw-r--r--src/daemons/server-stats.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemons/server-stats.ts b/src/daemons/server-stats.ts
index 1403402508..5c793c6624 100644
--- a/src/daemons/server-stats.ts
+++ b/src/daemons/server-stats.ts
@@ -11,14 +11,14 @@ const interval = 1000;
* Report server stats regularly
*/
export default function() {
- const log = [];
+ const log: any[] = [];
ev.on('requestServerStatsLog', id => {
ev.emit('serverStatsLog:' + id, log);
});
async function tick() {
- osUtils.cpuUsage(cpuUsage => {
+ osUtils.cpuUsage((cpuUsage: number) => {
const disk = diskusage.checkSync(os.platform() == 'win32' ? 'c:' : '/');
const stats = {
cpu_usage: cpuUsage,