From 29bb1111924b9850a1b6bcf789bfccb20db42e7b Mon Sep 17 00:00:00 2001 From: Mauro Stettler Date: Fri, 13 Mar 2020 16:43:33 -0300 Subject: [PATCH] allow floats in scaleToSeconds() --- webapp/graphite/render/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/graphite/render/functions.py b/webapp/graphite/render/functions.py index 9490d5464..d478d0e63 100644 --- a/webapp/graphite/render/functions.py +++ b/webapp/graphite/render/functions.py @@ -1315,7 +1315,7 @@ def scaleToSeconds(requestContext, seriesList, seconds): scaleToSeconds.group = 'Transform' scaleToSeconds.params = [ Param('seriesList', ParamTypes.seriesList, required=True), - Param('seconds', ParamTypes.integer, required=True), + Param('seconds', ParamTypes.float, required=True), ]