mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
one less fork per graph on a page, yay
git-svn-id: http://www.observium.org/svn/observer/trunk@768 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -61,7 +61,7 @@ if($_GET['debug']) {
|
|||||||
$thing = shell_exec($config['rrdtool'] . " graph $graphfile $rrd_options");
|
$thing = shell_exec($config['rrdtool'] . " graph $graphfile $rrd_options");
|
||||||
if(is_file($graphfile)) {
|
if(is_file($graphfile)) {
|
||||||
header('Content-type: image/png');
|
header('Content-type: image/png');
|
||||||
echo(`cat $graphfile`);
|
$fd = fopen($graphfile,'r');fpassthru($fd);fclose($fd);
|
||||||
} else {
|
} else {
|
||||||
header('Content-type: image/png');
|
header('Content-type: image/png');
|
||||||
$string = "Graph Generation Error";
|
$string = "Graph Generation Error";
|
||||||
@ -76,7 +76,7 @@ if($_GET['debug']) {
|
|||||||
|
|
||||||
if($graph) {
|
if($graph) {
|
||||||
header('Content-type: image/png');
|
header('Content-type: image/png');
|
||||||
echo(`cat $graphfile`);
|
$fd = fopen($graphfile,'r');fpassthru($fd);fclose($fd);
|
||||||
} else {
|
} else {
|
||||||
header('Content-type: image/png');
|
header('Content-type: image/png');
|
||||||
$string = "Graph Generation Error";
|
$string = "Graph Generation Error";
|
||||||
|
Reference in New Issue
Block a user