From cf2bc478bb9058a3b4e1f716c04dc3854728fb76 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Fri, 24 Jun 2016 01:21:26 +0200 Subject: [PATCH] print scale factor as float number --- include/classes/rrdstat.php-class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/classes/rrdstat.php-class b/include/classes/rrdstat.php-class index 7ac9c04..55d0c37 100644 --- a/include/classes/rrdstat.php-class +++ b/include/classes/rrdstat.php-class @@ -630,7 +630,7 @@ class rrdstat { $grow = array(); $grow['dType'] = 'CDEF'; $grow['name'] = $erow['name']; - $grow['rpn_expr'] = $erow['name'].'_tmp,'.$erow['scale'].',*'; + $grow['rpn_expr'] = $erow['name'].'_tmp,'.sprintf('%F', $erow['scale']).',*'; } if ($use_gcrows) { $grow['gType'] = isset($erow['gType'])?$erow['gType']:'LINE1'; } else { $grow['gType'] = ((count($grow_def)==2) && ($key==0))?'AREA':'LINE1'; } -- 2.43.0