Skip to content
Snippets Groups Projects
Commit 606e5c08 authored by syuilo's avatar syuilo
Browse files

fix: suppress disk stats error

parent 4b13431a
No related branches found
No related tags found
No related merge requests found
......@@ -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 };
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment