From cbe6f6a235ebe26e5b51d4aca383350ab19bbbbb Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Thu, 19 May 2016 14:06:19 -0700 Subject: [PATCH] updating the CpuStats api --- api/tasks.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/tasks.go b/api/tasks.go index 1a80212fd..153aa0b60 100644 --- a/api/tasks.go +++ b/api/tasks.go @@ -14,10 +14,11 @@ type MemoryStats struct { } type CpuUsage struct { - SystemMode uint64 - UserMode uint64 + SystemMode float64 + UserMode float64 ThrottledPeriods uint64 ThrottledTime uint64 + Percent float64 } type TaskResourceUsage struct {