Commit 1610acc8 authored by cbasolutions's avatar cbasolutions

RRD graphs are obnoxiously large #55

Removed width=100% and set inline style="max-width:100%; height:auto"
parent 7566fa09
...@@ -514,7 +514,7 @@ function get_dates($curperiod, $graph) { ...@@ -514,7 +514,7 @@ function get_dates($curperiod, $graph) {
$id = preg_replace('/\./', '_', $id); $id = preg_replace('/\./', '_', $id);
$img_date = date('YmdGis'); /* Add a way to let the browser know we have refreshed the image */ $img_date = date('YmdGis'); /* Add a way to let the browser know we have refreshed the image */
echo "<tr><td colspan=\"100%\" class=\"list\">\n"; echo "<tr><td colspan=\"100%\" class=\"list\">\n";
echo "<img border=\"0\" width=\"100%;\" name=\"{$id}\""; echo "<img border=\"0\" style=\"max-width:100%; height:auto\" name=\"{$id}\"";
echo "id=\"{$id}\" alt=\"$prettydb Graph\" "; echo "id=\"{$id}\" alt=\"$prettydb Graph\" ";
echo "src=\"status_rrd_graph_img.php?start={$start}&amp;end={$end}&amp;database={$curdatabase}&amp;style={$curstyle}&amp;graph={$graph}-{$img_date}\" />\n"; echo "src=\"status_rrd_graph_img.php?start={$start}&amp;end={$end}&amp;database={$curdatabase}&amp;style={$curstyle}&amp;graph={$graph}-{$img_date}\" />\n";
echo "<br /><hr /><br />\n"; echo "<br /><hr /><br />\n";
...@@ -583,7 +583,7 @@ function get_dates($curperiod, $graph) { ...@@ -583,7 +583,7 @@ function get_dates($curperiod, $graph) {
$start = $dates['start']; $start = $dates['start'];
$end = $dates['end']; $end = $dates['end'];
echo "<tr><td colspan=\"100%\" class=\"list\">\n"; echo "<tr><td colspan=\"100%\" class=\"list\">\n";
echo "<img border=\"0\" width=\"100%;\" name=\"{$id}\" "; echo "<img border=\"0\" style=\"max-width:100%; height:auto\" name=\"{$id}\" ";
echo "id=\"{$id}\" alt=\"$prettydb Graph\" "; echo "id=\"{$id}\" alt=\"$prettydb Graph\" ";
echo "src=\"status_rrd_graph_img.php?start={$start}&amp;end={$end}&amp;database={$curdatabase}&amp;style={$curstyle}&amp;graph={$graph}-{$img_date}\" />\n"; echo "src=\"status_rrd_graph_img.php?start={$start}&amp;end={$end}&amp;database={$curdatabase}&amp;style={$curstyle}&amp;graph={$graph}-{$img_date}\" />\n";
echo "<br /><hr /><br />\n"; echo "<br /><hr /><br />\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment