stackdriver: use correct name for variable

This commit is contained in:
Erik Sundell
2018-09-26 15:37:29 +02:00
parent cb90b638d7
commit 13c68e6ed8
+2 -2
View File
@@ -190,8 +190,8 @@ func setAggParams(params *url.Values, query *tsdb.Query) {
}
re := regexp.MustCompile("[0-9]+")
aa, err := strconv.ParseInt(re.FindString(alignmentPeriod), 10, 64)
if err != nil || aa > 3600 {
seconds, err := strconv.ParseInt(re.FindString(alignmentPeriod), 10, 64)
if err != nil || seconds > 3600 {
alignmentPeriod = "+3600s"
}