mirror of https://github.com/shirou/gopsutil
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
254 B
Go
17 lines
254 B
Go
11 years ago
|
package gopsutil
|
||
11 years ago
|
|
||
11 years ago
|
import (
|
||
|
"encoding/json"
|
||
|
)
|
||
|
|
||
11 years ago
|
type LoadAvgStat struct {
|
||
11 years ago
|
Load1 float64 `json:"load1"`
|
||
|
Load5 float64 `json:"load5"`
|
||
|
Load15 float64 `json:"load15"`
|
||
|
}
|
||
11 years ago
|
|
||
|
func (l LoadAvgStat) String() string {
|
||
|
s, _ := json.Marshal(l)
|
||
|
return string(s)
|
||
|
}
|