summaryrefslogtreecommitdiff
path: root/src/daemons/server-stats.ts
diff options
context:
space:
mode:
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,