projects
/
php-utility-classes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f3c580
)
print scale factor as float number
author
Robert Kaiser
<kairo@kairo.at>
Thu, 23 Jun 2016 23:21:26 +0000
(
01:21
+0200)
committer
Robert Kaiser
<kairo@kairo.at>
Thu, 23 Jun 2016 23:21:26 +0000
(
01:21
+0200)
include/classes/rrdstat.php-class
patch
|
blob
|
blame
|
history
diff --git
a/include/classes/rrdstat.php-class
b/include/classes/rrdstat.php-class
index 7ac9c04973b6b536e7c7fd228c2c4fbe431aa236..55d0c37a3ff1d310d18e5299b38948fec1f62298 100644
(file)
--- 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'; }