Commit f6680c20 authored by Ubuntu's avatar Ubuntu

fix mem usage

parent cea7c216
......@@ -52,7 +52,7 @@ func getMemoryUsage() ([]DeviceInfo, error) {
Type: fmt.Sprintf("mem"),
//Model: disk.Model,
Param: "mem usage",
Power: uint64((1 - usable.Div(total).int64()) * 100),
Power: uint64((1 - usable.Div(total).Int()) * 100),
}
res := make([]DeviceInfo, 0, 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment