From 5e1b882e3744ccb19992152fe7e580b7e630f266 Mon Sep 17 00:00:00 2001 From: renaynay <41963722+renaynay@users.noreply.github.com> Date: Wed, 13 May 2020 11:20:44 +0200 Subject: [PATCH] updated docs for TimesStat with correct time unit --- cpu/cpu.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpu/cpu.go b/cpu/cpu.go index 2372ce3..d3ea1f2 100644 --- a/cpu/cpu.go +++ b/cpu/cpu.go @@ -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"`