fix error spam from ServerStatsService when running on Windows

This commit is contained in:
Hazel K 2024-08-17 10:00:27 -04:00
parent 994b6ef7d1
commit 5e352033c8
1 changed files with 2 additions and 1 deletions

View File

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