Allow to hide swap stats for mem plugin, fix swap calculation

This commit is contained in:
eleksir
2024-01-10 19:07:12 +03:00
parent bc9b8f9106
commit c969ac9e42
4 changed files with 49 additions and 12 deletions

View File

@@ -23,7 +23,10 @@ type MyConfig struct {
// LA Plugin
LA bool `json:"la,omitempty"`
Mem bool `json:"mem,omitempty"`
Mem struct {
Enabled bool `json:"enabled,omitempty"`
ShowSwap bool `json:"show_swap,omitempty"`
} `json:"mem,omitempty"`
Clock struct {
Enabled bool `json:"enabled,omitempty"`