mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-21 21:45:11 +00:00
merge: fix: prevent error spam from ServerStatsService when running on Windows (!600)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/600 Approved-by: dakkar <dakkar@thenautilus.net> Approved-by: Marie <2-Marie@users.noreply.activitypub.software>
This commit is contained in:
commit
38f25ab1b7
1 changed files with 2 additions and 1 deletions
|
@ -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 };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue