[ARVADOS] updated: 2b08ab24b496f14d2ef97167a2e78e92b179f226

git at public.curoverse.com git at public.curoverse.com
Thu Oct 16 09:49:22 EDT 2014


Summary of changes:
 services/crunchstat/crunchstat.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  2b08ab24b496f14d2ef97167a2e78e92b179f226 (commit)
      from  5de6c0630a455eb29d83f97e6787a83c8332b1e5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 2b08ab24b496f14d2ef97167a2e78e92b179f226
Author: Tom Clegg <tom at curoverse.com>
Date:   Thu Oct 16 09:48:16 2014 -0400

    3826: Use correct variable Sscanf. CPU stats work again.

diff --git a/services/crunchstat/crunchstat.go b/services/crunchstat/crunchstat.go
index 89086f3..2b4571d 100644
--- a/services/crunchstat/crunchstat.go
+++ b/services/crunchstat/crunchstat.go
@@ -320,7 +320,7 @@ func DoCpuStats(stderr chan<- string, cgroup Cgroup, lastSample *CpuSample) (*Cp
 
 	nextSample := &CpuSample{time.Now(), 0, 0, GetCpuCount(stderr, cgroup)}
 	var userTicks, sysTicks int64
-	fmt.Sscanf(string(b), "user %d\nsystem %d", &nextSample.user, &nextSample.sys)
+	fmt.Sscanf(string(b), "user %d\nsystem %d", &userTicks, &sysTicks)
 	user_hz := float64(C.sysconf(C._SC_CLK_TCK))
 	nextSample.user = float64(userTicks) / user_hz
 	nextSample.sys = float64(sysTicks) / user_hz

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list