1
0
Fork 1
mirror of https://example.com synced 2024-11-28 06:36:38 +09:00

fix: suppress disk stats error

This commit is contained in:
syuilo 2021-03-19 23:26:44 +09:00
parent 4b13431a19
commit 606e5c0878

View file

@ -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 };
}