forked from FoundKeyGang/FoundKey
fix: suppress disk stats error
This commit is contained in:
parent
4b13431a19
commit
606e5c0878
1 changed files with 1 additions and 1 deletions
|
@ -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 };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue