Skip to content

Commit

Permalink
Merge pull request shirou#872 from renaynay/update-docs-cputimes
Browse files Browse the repository at this point in the history
Update docs for TimesStat with correct time unit
  • Loading branch information
Lomanic authored May 31, 2020
2 parents a901d16 + 5e1b882 commit 663af78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpu/cpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 663af78

Please sign in to comment.