mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-01 21:13:39 +01:00
Fix: SMART result of OMV should always from monitored devices (#2025)
This commit is contained in:
parent
ed0527a3da
commit
69ee459e8a
@ -3,13 +3,13 @@ import Container from "components/services/widget/container";
|
|||||||
import Block from "components/services/widget/block";
|
import Block from "components/services/widget/block";
|
||||||
|
|
||||||
const passedReduce = (acc, e) => {
|
const passedReduce = (acc, e) => {
|
||||||
if (e.overallstatus === "GOOD") {
|
if (e.monitor && e.overallstatus === "GOOD") {
|
||||||
return acc + 1;
|
return acc + 1;
|
||||||
}
|
}
|
||||||
return acc;
|
return acc;
|
||||||
};
|
};
|
||||||
const failedReduce = (acc, e) => {
|
const failedReduce = (acc, e) => {
|
||||||
if (e.overallstatus !== "GOOD") {
|
if (e.monitor && e.overallstatus !== "GOOD") {
|
||||||
return acc + 1;
|
return acc + 1;
|
||||||
}
|
}
|
||||||
return acc;
|
return acc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user