From 22f3299fd74dd1df8b6539bb75f4ca5462b4cc3d Mon Sep 17 00:00:00 2001 From: Adam Medzinski Date: Mon, 27 Nov 2017 12:17:06 +0100 Subject: [PATCH] Add missing doc for cpu.TimesStat structure --- cpu/cpu.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpu/cpu.go b/cpu/cpu.go index f5bf315..f0dccd4 100644 --- a/cpu/cpu.go +++ b/cpu/cpu.go @@ -12,6 +12,9 @@ import ( "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 { CPU string `json:"cpu"` User float64 `json:"user"`