X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=include%2Fclasses%2Frrdstat.php-class;h=55d0c37a3ff1d310d18e5299b38948fec1f62298;hp=7ac9c04973b6b536e7c7fd228c2c4fbe431aa236;hb=cf2bc478bb9058a3b4e1f716c04dc3854728fb76;hpb=6f3c580520a92e646f1fc95b9d893c2bb4509e4f 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'; }