From 55bcf60ea6ed475f1b626c9fa1e572dc014a7aaf Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 27 Jun 2019 19:36:15 +0300 Subject: [PATCH] app/vmselect: fix 32bit arm build Fixes https://github.com/VictoriaMetrics/VictoriaMetrics/issues/83 --- app/vmselect/prometheus/prometheus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmselect/prometheus/prometheus.go b/app/vmselect/prometheus/prometheus.go index 7580a8220c..c7c5b8a3c8 100644 --- a/app/vmselect/prometheus/prometheus.go +++ b/app/vmselect/prometheus/prometheus.go @@ -581,7 +581,7 @@ func getDuration(r *http.Request, argKey string, defaultValue int64) (int64, err } msecs := int64(secs * 1e3) if msecs <= 0 || msecs > maxDurationMsecs { - return 0, fmt.Errorf("%q=%dms is out of allowed range [%d ... %d]", argKey, msecs, 0, maxDurationMsecs) + return 0, fmt.Errorf("%q=%dms is out of allowed range [%d ... %d]", argKey, msecs, 0, int64(maxDurationMsecs)) } return msecs, nil }