From 4252cd7eeba65b32b419e255bfc8bb68d6189421 Mon Sep 17 00:00:00 2001 From: Justin Li Date: Wed, 23 Jul 2014 17:58:44 -0400 Subject: [PATCH] Rename mem_stats field to mem --- stats/mem.go | 2 +- stats/stats.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stats/mem.go b/stats/mem.go index 413a78c..1963a2b 100644 --- a/stats/mem.go +++ b/stats/mem.go @@ -15,7 +15,7 @@ type BasicMemStats struct { // General statistics. Alloc uint64 // bytes allocated and still in use TotalAlloc uint64 // bytes allocated (even if freed) - Sys uint64 // bytes obtained from system (sum of XxxSys below) + Sys uint64 // bytes obtained from system (sum of XxxSys in runtime) Lookups uint64 // number of pointer lookups Mallocs uint64 // number of mallocs Frees uint64 // number of frees diff --git a/stats/stats.go b/stats/stats.go index 48941c6..cfe1614 100644 --- a/stats/stats.go +++ b/stats/stats.go @@ -84,7 +84,7 @@ type Stats struct { RequestsErrored uint64 `json:"requests_errored"` ResponseTime PercentileTimes `json:"response_time"` - MemStats *MemStatsWrapper `json:"mem_stats,omitempty"` + MemStats *MemStatsWrapper `json:"mem,omitempty"` events chan int ipv4PeerEvents chan int