updated docs for TimesStat with correct time unit

This commit is contained in:
renaynay 2020-05-13 11:20:44 +02:00
parent 987c949880
commit 5e1b882e37
No known key found for this signature in database
GPG Key ID: 6557F5413D663EDB
1 changed files with 1 additions and 2 deletions

View File

@ -14,8 +14,7 @@ import (
)
// 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.
// kinds of work. Time units are in seconds. It is based on linux /proc/stat file.
type TimesStat struct {
CPU string `json:"cpu"`
User float64 `json:"user"`