diff --git a/internal/pkg/checks/memory.go b/internal/pkg/checks/memory.go index 91a46a3..97cac53 100644 --- a/internal/pkg/checks/memory.go +++ b/internal/pkg/checks/memory.go @@ -15,11 +15,14 @@ type Memory struct { func (h Memory) Execute() (ok bool, data interface{}, err error) { memory, err := memory.Get() p := float64(100) / float64(memory.Total) * float64(memory.Used) + res := make(map[string]interface{}) + res["row"] = memory + res["ram"] = p if p > h.Config.Max { - return false, memory, nil + return false, res, nil } - return true, memory,nil + return true, res,nil } func (h Memory) Name() string { diff --git a/template/index.html b/template/index.html index 73f8b6a..d237671 100644 --- a/template/index.html +++ b/template/index.html @@ -30,12 +30,11 @@
Some quick example text to build on the card title and make up the bulk of the card's content.
+Some quick example text to build on the card title and make up the bulk of the card's content.