diff --git a/src/daemons/server-stats.ts b/src/daemons/server-stats.ts index 9bb43fe84e..f3e3d61f8b 100644 --- a/src/daemons/server-stats.ts +++ b/src/daemons/server-stats.ts @@ -23,7 +23,7 @@ export default function() { const cpu = await cpuUsage(); const usedmem = await usedMem(); const totalmem = await totalMem(); - const disk = diskusage.checkSync(os.platform() == 'win32' ? 'c:' : '/'); + const disk = await diskusage.check(os.platform() == 'win32' ? 'c:' : '/'); const stats = { cpu_usage: cpu,