Skip to content
Snippets Groups Projects
Commit fda67cfd authored by Oliver's avatar Oliver
Browse files

go fmt

parent d3c7f89f
No related branches found
No related tags found
No related merge requests found
Loading
@@ -1021,7 +1021,7 @@ func (e *Exporter) scrapeRedisHost(scrapes chan<- scrapeResult, addr string, idx
Loading
@@ -1021,7 +1021,7 @@ func (e *Exporter) scrapeRedisHost(scrapes chan<- scrapeResult, addr string, idx
if len(values) > 0 { if len(values) > 0 {
if values, err = redis.Values(values[0], err); err == nil && len(values) > 0 { if values, err = redis.Values(values[0], err); err == nil && len(values) > 0 {
slowlogLastId = values[0].(int64) slowlogLastId = values[0].(int64)
if (len(values) > 2) { if len(values) > 2 {
lastSlowExecutionDurationSeconds = float64(values[2].(int64)) / 1e6 lastSlowExecutionDurationSeconds = float64(values[2].(int64)) / 1e6
} }
} }
Loading
Loading
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