fix error spam from ServerStatsService when running on Windows
This commit is contained in:
parent
994b6ef7d1
commit
5e352033c8
|
@ -108,5 +108,6 @@ async function net() {
|
||||||
|
|
||||||
// FS STAT
|
// FS STAT
|
||||||
async function fs() {
|
async function fs() {
|
||||||
return await si.disksIO().catch(() => ({ rIO_sec: 0, wIO_sec: 0 }));
|
const io = await si.disksIO().catch(() => null);
|
||||||
|
return io ?? { rIO_sec: 0, wIO_sec: 0 };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue