aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/js
diff options
context:
space:
mode:
authorManuel Luis SanmartĂ­n Rozada2014-01-30 23:46:18 +0100
committerPim van den Berg2014-06-28 21:58:05 +0200
commit546377f936a53d16c823892a5acfc08553c3c564 (patch)
tree50561d842718c9f5c5ed362b4536ec0d5131c8e3 /js
parentrm plugin.php (diff)
downloadapt-panopticon_cgp-546377f936a53d16c823892a5acfc08553c3c564.zip
apt-panopticon_cgp-546377f936a53d16c823892a5acfc08553c3c564.tar.gz
apt-panopticon_cgp-546377f936a53d16c823892a5acfc08553c3c564.tar.bz2
apt-panopticon_cgp-546377f936a53d16c823892a5acfc08553c3c564.tar.xz
jsrrdgraph: Fix errors in second axis.
Diffstat (limited to 'js')
-rw-r--r--js/RrdGraph.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/RrdGraph.js b/js/RrdGraph.js
index 40d70da..cf39f8f 100644
--- a/js/RrdGraph.js
+++ b/js/RrdGraph.js
@@ -1825,7 +1825,7 @@ RrdGraph.prototype.axis_paint = function()
1825 if (this.second_axis_scale != 0){ 1825 if (this.second_axis_scale != 0){
1826 this.gfx.line (this.xorigin+this.xsize,this.yorigin+4, 1826 this.gfx.line (this.xorigin+this.xsize,this.yorigin+4,
1827 this.xorigin+this.xsize,this.yorigin-this.ysize-4, 1827 this.xorigin+this.xsize,this.yorigin-this.ysize-4,
1828 MGRIDWIDTH, this.graph_col[this.GRC.AXIS]); 1828 this.MGRIDWIDTH, this.GRC.AXIS);
1829 this.gfx.new_area (this.xorigin+this.xsize-2, this.yorigin-this.ysize-2, 1829 this.gfx.new_area (this.xorigin+this.xsize-2, this.yorigin-this.ysize-2,
1830 this.xorigin+this.xsize+3, this.yorigin-this.ysize-2, 1830 this.xorigin+this.xsize+3, this.yorigin-this.ysize-2,
1831 this.xorigin+this.xsize, this.yorigin-this.ysize-7, /* LINEOFFSET */ 1831 this.xorigin+this.xsize, this.yorigin-this.ysize-7, /* LINEOFFSET */
@@ -2294,7 +2294,7 @@ RrdGraph.prototype.draw_horizontal_grid = function()
2294 nlabels++; 2294 nlabels++;
2295 if (this.second_axis_scale != 0){ 2295 if (this.second_axis_scale != 0){
2296 var graph_label_right; 2296 var graph_label_right;
2297 sval = this.ygrid_scale.gridstep*i*this.second_axis_scale+this.second_axis_shift; 2297 var sval = this.ygrid_scale.gridstep*i*this.second_axis_scale+this.second_axis_shift;
2298 if (!this.second_axis_format){ 2298 if (!this.second_axis_format){
2299 if (!second_axis_magfact){ 2299 if (!second_axis_magfact){
2300 var dummy = this.ygrid_scale.gridstep*(sgrid+egrid)/2.0*this.second_axis_scale+this.second_axis_shift; 2300 var dummy = this.ygrid_scale.gridstep*(sgrid+egrid)/2.0*this.second_axis_scale+this.second_axis_shift;