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

View file

@ -108,5 +108,6 @@ async function net() {
// FS STAT
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 };
}