diff options
| author | manuel.luis | 2015-01-15 01:35:35 +0100 |
|---|---|---|
| committer | Pim van den Berg | 2015-06-22 11:00:49 +0200 |
| commit | 0ea3616771d339450b54b090a651fd7eb3e27feb (patch) | |
| tree | 06d856f11fef2a878eaa15fff815063251dcd1a8 /js | |
| parent | Add slab to memory plugin (diff) | |
| download | apt-panopticon_cgp-0ea3616771d339450b54b090a651fd7eb3e27feb.zip apt-panopticon_cgp-0ea3616771d339450b54b090a651fd7eb3e27feb.tar.gz apt-panopticon_cgp-0ea3616771d339450b54b090a651fd7eb3e27feb.tar.bz2 apt-panopticon_cgp-0ea3616771d339450b54b090a651fd7eb3e27feb.tar.xz | |
jsrrdgraph: Fix parse AREA in cmd line.
Diffstat (limited to 'js')
| -rw-r--r-- | js/RrdCmdLine.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/RrdCmdLine.js b/js/RrdCmdLine.js index 48b3d9d..581e2f0 100644 --- a/js/RrdCmdLine.js +++ b/js/RrdCmdLine.js | |||
| @@ -442,9 +442,9 @@ RrdCmdLine.prototype = { | |||
| 442 | parse_area: function (line) | 442 | parse_area: function (line) |
| 443 | { | 443 | { |
| 444 | var args = line.split(/#|:/); | 444 | var args = line.split(/#|:/); |
| 445 | var stack = args[3] === 'STACK' ? true : undefined; | 445 | var stack = args[4] === 'STACK' ? true : undefined; |
| 446 | var color = this.graph.parse_color(args[2]); | 446 | var color = this.graph.parse_color(args[2]); |
| 447 | this.graph.gdes_add_area(args[1], this.graph.color2rgba(color), stack); | 447 | this.graph.gdes_add_area(args[1], this.graph.color2rgba(color), args[3], stack); |
| 448 | }, | 448 | }, |
| 449 | // TICK:vname#rrggbb[aa][:fraction[:legend]] | 449 | // TICK:vname#rrggbb[aa][:fraction[:legend]] |
| 450 | parse_tick: function (line) | 450 | parse_tick: function (line) |
