summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-12-21 00:17:49 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-12-21 00:17:49 +0000
commit0e7000234ed533ea9bae442e2cf920e6362f39a7 (patch)
treed521f2143a4894d58b09f7ddcbdcbf704af96867 /etc
parentf63d5b66b49abe5190703d9d251b7e2d462e993b (diff)
downloadpfsense-0e7000234ed533ea9bae442e2cf920e6362f39a7.zip
pfsense-0e7000234ed533ea9bae442e2cf920e6362f39a7.tar.gz
add debugging
fix parse error
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index d103067..aaa26ae 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -2084,6 +2084,7 @@ endif;
/* the roundtrip times need to be divided by 1000 to get seconds, really */
exec("cd $rrddbpath;/usr/bin/find *-quality.rrd", $databases);
rsort($databases);
+ print_r($databases);
foreach($databases as $database) {
log_error("Migrate RRD database {$rrddbpath}{$database}");
mwexec("$rrdtool tune {$rrddbpath}{$database} -r roundtrip:delay ");
@@ -2093,6 +2094,7 @@ endif;
/* build a list of traffic and packets databases */
exec("cd $rrddbpath;/usr/bin/find *-traffic.rrd *-packets.rrd", $databases);
+ print_r($databases);
rsort($databases);
foreach($databases as $database) {
$databasetmp = "{$database}.tmp";
@@ -2100,7 +2102,7 @@ endif;
$xmldumptmp = "{$database}.tmp.xml";
$xmldumpnew = "{$database}.new.xml";
- log_error("Migrate RRD database {$rrddbpath}/{$database} to new format)";
+ log_error("Migrate RRD database {$rrddbpath}/{$database} to new format");
echo "Migrate RRD database {$rrddbpath}/{$database} to new format \n";
/* rename DS source */
mwexec("$rrdtool tune {$rrddbpath}/{$database} -r in:inpass");
@@ -2110,7 +2112,6 @@ endif;
dump_rrd_to_xml("{$rrddbpath}/{$database}", "{$g['tmp_path']}/{$xmldump}");
/* create new rrd database file */
- echo "Create RRD database {$g['tmp_path']}/{$databasetmp}\n";
$rrdcreate = "$rrdtool create {$g['tmp_path']}/{$databasetmp} --step $rrdinterval ";
$rrdcreate .= "DS:inpass:COUNTER:$valid:0:$downstream ";
$rrdcreate .= "DS:outpass:COUNTER:$valid:0:$upstream ";
OpenPOWER on IntegriCloud