Adding upstream version 2.52.6.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
a960158181
commit
6d002e9543
441 changed files with 95392 additions and 0 deletions
30
internal/gopsutil/load/load.go
Normal file
30
internal/gopsutil/load/load.go
Normal file
|
@ -0,0 +1,30 @@
|
|||
package load
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// var invoke common.Invoker = common.Invoke{}
|
||||
type AvgStat struct {
|
||||
Load1 float64 `json:"load1"`
|
||||
Load5 float64 `json:"load5"`
|
||||
Load15 float64 `json:"load15"`
|
||||
}
|
||||
|
||||
func (l AvgStat) String() string {
|
||||
s, _ := json.Marshal(l)
|
||||
return string(s)
|
||||
}
|
||||
|
||||
type MiscStat struct {
|
||||
ProcsTotal int64 `json:"procsTotal"`
|
||||
ProcsCreated int64 `json:"procsCreated"`
|
||||
ProcsRunning int64 `json:"procsRunning"`
|
||||
ProcsBlocked int64 `json:"procsBlocked"`
|
||||
Ctxt int64 `json:"ctxt"`
|
||||
}
|
||||
|
||||
func (m MiscStat) String() string {
|
||||
s, _ := json.Marshal(m)
|
||||
return string(s)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue