From c47c01106377ba4c5e17d539ae6ed5ad1c029578 Mon Sep 17 00:00:00 2001 From: Tobias Schmidt Date: Thu, 21 Jan 2016 00:44:07 -0500 Subject: [PATCH] Fix go format style in mdadm collector --- collector/mdadm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/mdadm.go b/collector/mdadm.go index d13f4de4..03224970 100644 --- a/collector/mdadm.go +++ b/collector/mdadm.go @@ -162,7 +162,7 @@ func parseMdstat(mdStatusFilePath string) ([]mdStatus, error) { // If device is syncing at the moment, get the number of currently synced bytes, // otherwise that number equals the size of the device. - if strings.Contains(lines[j], "recovery") || strings.Contains(lines[j], "resync") && ! strings.Contains(lines[j], "resync=DELAYED") { + if strings.Contains(lines[j], "recovery") || strings.Contains(lines[j], "resync") && !strings.Contains(lines[j], "resync=DELAYED") { syncedBlocks, err = evalBuildline(lines[j]) if err != nil { return mdStates, fmt.Errorf("error parsing mdstat: %s", err)