From 27da84622a241dc924892151b65f22ea40bb71f2 Mon Sep 17 00:00:00 2001 From: Simon Fraser Date: Thu, 20 Aug 2015 09:40:32 +0100 Subject: [PATCH] fix segv on error --- plugins/system/ps.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/system/ps.go b/plugins/system/ps.go index 687ccdf7e..0bf67011b 100644 --- a/plugins/system/ps.go +++ b/plugins/system/ps.go @@ -78,11 +78,10 @@ func (s *systemPS) DiskUsage() ([]*disk.DiskUsageStat, error) { for _, p := range parts { du, err := disk.DiskUsage(p.Mountpoint) - du.Fstype = p.Fstype if err != nil { return nil, err } - + du.Fstype = p.Fstype usage = append(usage, du) }