fix error spam from ServerStatsService when running on Windows
This commit is contained in:
@@ -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 };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user