From f5437632f486b7d0a0a181c58f113c86d032b02c Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 24 Apr 2017 20:11:36 -0400 Subject: Upgrading server dependancies (#6215) --- vendor/github.com/prometheus/procfs/xfs/parse.go | 2 -- vendor/github.com/prometheus/procfs/xfs/parse_test.go | 6 +----- vendor/github.com/prometheus/procfs/xfs/xfs.go | 5 +++++ 3 files changed, 6 insertions(+), 7 deletions(-) (limited to 'vendor/github.com/prometheus/procfs/xfs') diff --git a/vendor/github.com/prometheus/procfs/xfs/parse.go b/vendor/github.com/prometheus/procfs/xfs/parse.go index d1285fa6c..c8f6279f3 100644 --- a/vendor/github.com/prometheus/procfs/xfs/parse.go +++ b/vendor/github.com/prometheus/procfs/xfs/parse.go @@ -17,7 +17,6 @@ import ( "bufio" "fmt" "io" - "log" "strconv" "strings" ) @@ -273,7 +272,6 @@ func vnodeStats(us []uint32) (VnodeStats, error) { // stats versions. Therefore, 7 or 8 elements may appear in // this slice. l := len(us) - log.Println(l) if l != 7 && l != 8 { return VnodeStats{}, fmt.Errorf("incorrect number of values for XFS vnode stats: %d", l) } diff --git a/vendor/github.com/prometheus/procfs/xfs/parse_test.go b/vendor/github.com/prometheus/procfs/xfs/parse_test.go index 11ddb7425..2e946c2c5 100644 --- a/vendor/github.com/prometheus/procfs/xfs/parse_test.go +++ b/vendor/github.com/prometheus/procfs/xfs/parse_test.go @@ -14,7 +14,6 @@ package xfs_test import ( - "log" "reflect" "strings" "testing" @@ -416,9 +415,7 @@ func TestParseStats(t *testing.T) { }, } - for i, tt := range tests { - t.Logf("[%02d] test %q", i, tt.name) - + for _, tt := range tests { var ( stats *xfs.Stats err error @@ -439,7 +436,6 @@ func TestParseStats(t *testing.T) { } if want, have := tt.stats, stats; !reflect.DeepEqual(want, have) { - log.Printf("stats: %#v", have) t.Errorf("unexpected XFS stats:\nwant:\n%v\nhave:\n%v", want, have) } } diff --git a/vendor/github.com/prometheus/procfs/xfs/xfs.go b/vendor/github.com/prometheus/procfs/xfs/xfs.go index ed77d907a..d86794b7c 100644 --- a/vendor/github.com/prometheus/procfs/xfs/xfs.go +++ b/vendor/github.com/prometheus/procfs/xfs/xfs.go @@ -22,6 +22,11 @@ package xfs // kernel source. Most counters are uint32s (same data types used in // xfs_stats.h), but some of the "extended precision stats" are uint64s. type Stats struct { + // The name of the filesystem used to source these statistics. + // If empty, this indicates aggregated statistics for all XFS + // filesystems on the host. + Name string + ExtentAllocation ExtentAllocationStats AllocationBTree BTreeStats BlockMapping BlockMappingStats -- cgit v1.2.3-1-g7c22