mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
RRD graphs are obnoxiously large #55
Removed width=100% and set inline style="max-width:100%; height:auto"
This commit is contained in:
parent
7566fa095c
commit
1610acc897
@ -514,7 +514,7 @@ function get_dates($curperiod, $graph) {
|
||||
$id = preg_replace('/\./', '_', $id);
|
||||
$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 "<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 "src=\"status_rrd_graph_img.php?start={$start}&end={$end}&database={$curdatabase}&style={$curstyle}&graph={$graph}-{$img_date}\" />\n";
|
||||
echo "<br /><hr /><br />\n";
|
||||
@ -583,7 +583,7 @@ function get_dates($curperiod, $graph) {
|
||||
$start = $dates['start'];
|
||||
$end = $dates['end'];
|
||||
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 "src=\"status_rrd_graph_img.php?start={$start}&end={$end}&database={$curdatabase}&style={$curstyle}&graph={$graph}-{$img_date}\" />\n";
|
||||
echo "<br /><hr /><br />\n";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user