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