X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=ND%2FWeb%2FPages%2FGraph.pm;h=d03435312a7bae2acbe896939e016bceb0dd8509;hb=f6cfe40e6a8da61229131a2d38a2535ae66da359;hp=d757d1345321e20238c83999c0fb0c43fbe612a8;hpb=4aa8043871fac60e6a5038489f6bc05ab2f3bd78;p=ndwebbie.git diff --git a/ND/Web/Pages/Graph.pm b/ND/Web/Pages/Graph.pm index d757d13..d034353 100644 --- a/ND/Web/Pages/Graph.pm +++ b/ND/Web/Pages/Graph.pm @@ -53,7 +53,7 @@ sub render_body { ($req{id}) = $DBH->selectrow_array(q{SELECT planetid($1,$2,$3,$4)},undef,$1,$2,$3,$tick); }else{ $type = "gal$type"; - $req{id} = 100*$2+$2; + $req{id} = 100*$1+$2; } } }elsif($self->{URI} =~ m{^/\w+/(alliance(?:avg)?)/(\d+)}){ @@ -96,7 +96,7 @@ sub render_body { $graph_settings{y_max_value} = 0; } $query->execute($x,$y,$z,$tick) or die $DBH->errstr; - $graph_settings{title} = $type; + $graph_settings{title} = "$type: $x:$y:$z"; $graph_settings{two_axes} = 1; $graph_settings{use_axis} = [2,1,2,2]; $img = graphFromQuery 500,300,\%graph_settings,$query; @@ -111,7 +111,7 @@ sub render_body { $graph_settings{y_max_value} = 0; } $query->execute($x,$y) or die $DBH->errstr; - $graph_settings{title} = $type; + $graph_settings{title} = "$type: $x:$y"; $graph_settings{two_axes} = 1; $graph_settings{use_axis} = [2,1,2,2]; $img = graphFromQuery 500,300,\%graph_settings,$query;