+ my $sql = $self->param('sql');
+
+ if ( my $timeout = $self->param('timeout') ) {
+ warn "set timout to $timeout";
+ $gearman->timeout( $timeout );
+ } else {
+ $self->param( timeout => $gearman->timeout );
+ }
+
+ return $self->render('gnuplot', img => '', gnuplot => '') unless $sql;