mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-18 07:56:57 +00:00
Update online status calculation to check if failure rate is below 50%
This commit is contained in:
parent
a3b47bd314
commit
871ab74576
@ -136,7 +136,7 @@ export async function POST(request: NextRequest) {
|
||||
return {
|
||||
timestamp: intervalKey,
|
||||
missing: !stats,
|
||||
online: stats ? stats.failed < 3 : null
|
||||
online: stats ? (stats.failed / stats.total) <= 0.5 : null
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user