From 64eb598ff41fefbcd3b2cba2138be6be0b48e9a8 Mon Sep 17 00:00:00 2001 From: Bruno Bigras Date: Tue, 25 Aug 2015 16:00:01 -0400 Subject: [PATCH] Typo: prec -> perc --- plugins/system/memory.go | 2 +- plugins/system/system_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/system/memory.go b/plugins/system/memory.go index c835dc76d..048012e83 100644 --- a/plugins/system/memory.go +++ b/plugins/system/memory.go @@ -27,7 +27,7 @@ func (s *MemStats) Gather(acc plugins.Accumulator) error { acc.Add("total", vm.Total, vmtags) acc.Add("available", vm.Available, vmtags) acc.Add("used", vm.Used, vmtags) - acc.Add("used_prec", vm.UsedPercent, vmtags) + acc.Add("used_perc", vm.UsedPercent, vmtags) acc.Add("free", vm.Free, vmtags) acc.Add("active", vm.Active, vmtags) acc.Add("inactive", vm.Inactive, vmtags) diff --git a/plugins/system/system_test.go b/plugins/system/system_test.go index 19e05e64d..88a35071a 100644 --- a/plugins/system/system_test.go +++ b/plugins/system/system_test.go @@ -310,7 +310,7 @@ func TestSystemStats_GenerateStats(t *testing.T) { assert.True(t, acc.CheckTaggedValue("total", uint64(12400), vmtags)) assert.True(t, acc.CheckTaggedValue("available", uint64(7600), vmtags)) assert.True(t, acc.CheckTaggedValue("used", uint64(5000), vmtags)) - assert.True(t, acc.CheckTaggedValue("used_prec", float64(47.1), vmtags)) + assert.True(t, acc.CheckTaggedValue("used_perc", float64(47.1), vmtags)) assert.True(t, acc.CheckTaggedValue("free", uint64(1235), vmtags)) assert.True(t, acc.CheckTaggedValue("active", uint64(8134), vmtags)) assert.True(t, acc.CheckTaggedValue("inactive", uint64(1124), vmtags))