Vendor psutils and remove neko
This commit is contained in:
16
plugins/system/ps/load/load.go
Normal file
16
plugins/system/ps/load/load.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package load
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
type LoadAvgStat struct {
|
||||
Load1 float64 `json:"load1"`
|
||||
Load5 float64 `json:"load5"`
|
||||
Load15 float64 `json:"load15"`
|
||||
}
|
||||
|
||||
func (l LoadAvgStat) String() string {
|
||||
s, _ := json.Marshal(l)
|
||||
return string(s)
|
||||
}
|
||||
Reference in New Issue
Block a user