fix: suppress disk stats error

This commit is contained in:
syuilo 2021-03-19 23:26:44 +09:00
parent 8234892f45
commit a9db1384d2

View File

@ -75,5 +75,5 @@ async function net() {
// FS STAT // FS STAT
async function fs() { async function fs() {
const data = await si.disksIO().catch(() => ({ rIO_sec: 0, wIO_sec: 0 })); const data = await si.disksIO().catch(() => ({ rIO_sec: 0, wIO_sec: 0 }));
return data; return data || { rIO_sec: 0, wIO_sec: 0 };
} }