Skip to content
Snippets Groups Projects
Commit d2787e8e authored by Mark Wolfe's avatar Mark Wolfe Committed by Cameron Sparr
Browse files

Fix for loop over value array range issue. (#2187)

parent a9f03a72
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,10 @@ func (s *systemPS) DiskUsage(
var usage []*disk.UsageStat
var partitions []*disk.PartitionStat
for _, p := range parts {
for i := range parts {
p := parts[i]
if len(mountPointFilter) > 0 {
// If the mount point is not a member of the filter set,
// don't gather info on it.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment