Merge pull request #461 from medzin/time-stat-doc
Add missing doc for cpu.TimesStat structure
This commit is contained in:
commit
5c46042e0d
|
@ -12,6 +12,9 @@ import (
|
||||||
"github.com/shirou/gopsutil/internal/common"
|
"github.com/shirou/gopsutil/internal/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// TimesStat contains the amounts of time the CPU has spent performing different
|
||||||
|
// kinds of work. Time units are in USER_HZ or Jiffies (typically hundredths of
|
||||||
|
// a second). It is based on linux /proc/stat file.
|
||||||
type TimesStat struct {
|
type TimesStat struct {
|
||||||
CPU string `json:"cpu"`
|
CPU string `json:"cpu"`
|
||||||
User float64 `json:"user"`
|
User float64 `json:"user"`
|
||||||
|
|
Loading…
Reference in New Issue