diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2007-11-21 20:14:50 +0100 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2007-11-21 20:14:50 +0100 |
commit | 6dbc90c295cb0fbf895ac259dabf9dfa22cbe803 (patch) | |
tree | b6332abd85e3556e59054e1f378b34c41be50320 /qooxdoo/source/grapher.cgi | |
parent | 97e7c02aa1ba779325072cdb8dba96f3454de584 (diff) | |
download | smokeping-6dbc90c295cb0fbf895ac259dabf9dfa22cbe803.tar.gz smokeping-6dbc90c295cb0fbf895ac259dabf9dfa22cbe803.tar.xz |
jres2007 work
Diffstat (limited to 'qooxdoo/source/grapher.cgi')
-rwxr-xr-x | qooxdoo/source/grapher.cgi | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/qooxdoo/source/grapher.cgi b/qooxdoo/source/grapher.cgi index 47ce8db..dcc87ed 100755 --- a/qooxdoo/source/grapher.cgi +++ b/qooxdoo/source/grapher.cgi @@ -28,14 +28,21 @@ sub main() # while (my $q = new CGI::Fast) { my $q = new CGI; my $graph = $q->param('g'); - my $width = $q->param('w') || 300; - my $height = $q->param('h') || 150; + my $width = $q->param('w'); + my $height = $q->param('h'); + my $start = $q->param('s'); + my $end = $q->param('e'); + my $top = $q->param('t'); + my $bottom = $q->param('b'); warn "groesse: $width $height\n"; RRDs::graph("/tmp/$$.tmpgraph", '--title' => "Demo ".$graph, '--vertical-label' => "Bytes/s", - '--start' => '20071101', - '--end' => '20071112', + '--start' => $start, + '--end' => $end, + '--upper-limit' => $top, + '--lower-limit' => $bottom, + '--riggid', # '--zoom' => '0.75', '--width' => $width, '--height' => $height, |