From a9db1384d2d7b0d7e32fc3fb74c3bea0683a5340 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 19 Mar 2021 23:26:44 +0900 Subject: [PATCH] fix: suppress disk stats error --- src/daemons/server-stats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemons/server-stats.ts b/src/daemons/server-stats.ts index bc1da5eef..8dfa94625 100644 --- a/src/daemons/server-stats.ts +++ b/src/daemons/server-stats.ts @@ -75,5 +75,5 @@ async function net() { // FS STAT async function fs() { const data = await si.disksIO().catch(() => ({ rIO_sec: 0, wIO_sec: 0 })); - return data; + return data || { rIO_sec: 0, wIO_sec: 0 }; }