aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pfstat.xml
diff options
context:
space:
mode:
Diffstat (limited to 'packages/pfstat.xml')
-rw-r--r--packages/pfstat.xml12
1 files changed, 8 insertions, 4 deletions
diff --git a/packages/pfstat.xml b/packages/pfstat.xml
index fa8faa42..86efaaf2 100644
--- a/packages/pfstat.xml
+++ b/packages/pfstat.xml
@@ -190,6 +190,11 @@
$rightgraphtext = "";
$isfirstleft = 0;
$isfirstright = 0;
+ $fromclassification = $rowhelper['fromclassification'];
+ $imagename = $rowhelper['imagename'];
+ $from = $rowhelper['from'];
+ $graphsizewidth = $rowhelper['graphsizewidth'];
+ $graphsizeheight = $rowhelper['graphsizeheight'];
foreach($rowhelper['row'] as $row) {
if($row['location'] == "left") {
if($isfirstleft == 1) $leftgraphtext .= ",\n";
@@ -201,11 +206,10 @@
$isfirstright = 1;
}
}
- fwrite($fout, "image \"/usr/local/www/pfstat/" . $rowhelper['imagename'] ."\" { \n");
- $from = $rowhelper['from'];
+ fwrite($fout, "image \"/usr/local/www/pfstat/" . $imagename ."\" { \n");
if($from == "") $from = "30";
- fwrite($fout, "from " . $from . " " . $rowhelper['fromclassification'] . " to now \n");
- fwrite($fout, "width " . $row['graphsizewidth'] . " height " . $rowhelper['graphsizeheight'] . " \n");
+ fwrite($fout, "from " . $from . " " . $fromclassification . " to now \n");
+ fwrite($fout, "width " . $graphsizewidth . " height " . $graphsizeheight . " \n");
if($leftgraphtext != "") {
fwrite($fout, " left \n");
fwrite($fout, " " . $leftgraphtext . "\n");