diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-04-13 22:10:08 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-04-13 22:10:08 +0000 |
commit | 0f9d0718e052310e26d7edf56314f4fd60fb86b8 (patch) | |
tree | 18e0144e8a4e616cf952b349bf0805bbca1ae388 /etc | |
parent | 3bc6635dabb0e9e2f680793c7de04db4d1a87eca (diff) | |
download | pfsense-0f9d0718e052310e26d7edf56314f4fd60fb86b8.zip pfsense-0f9d0718e052310e26d7edf56314f4fd60fb86b8.tar.gz |
Kill print lines (debugging) so bootup process looks "clean" again.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 5aabadb..dd86a9b 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1931,7 +1931,7 @@ function enable_rrd_graphing() /* set up the rrd file */ if(! file_exists("$rrddbpath$ifname$traffic")) { /* create rrd file if it does not exist */ - print "Create rrd database $ifname$traffic \n"; + $rrdcreate = "$rrdtool create $rrddbpath$ifname$traffic --step $rrdtrafficinterval \ DS:in:COUNTER:$trafficvalid:0:$downstream \ DS:out:COUNTER:$trafficvalid:0:$upstream \ @@ -1956,7 +1956,7 @@ function enable_rrd_graphing() /* set up the rrd file */ if(! file_exists("$rrddbpath$ifname$packets")) { /* create rrd file if it does not exist */ - print "Create rrd database $ifname$packets \n"; + $rrdcreate = "$rrdtool create $rrddbpath$ifname$packets --step $rrdpacketsinterval \ DS:in:COUNTER:$packetsvalid:0:$downstream \ DS:out:COUNTER:$packetsvalid:0:$upstream \ @@ -2107,14 +2107,14 @@ function enable_rrd_graphing() $rrdupdatesh .= "sleep 60\n"; $rrdupdatesh .= "done\n"; - PRINT "Creating rrd update script\n"; + /* write the rrd update script */ $updaterrdscript = "{$g['vardb_path']}/rrd/updaterrd.sh"; $fd = fopen("$updaterrdscript", "w"); fwrite($fd, "$rrdupdatesh"); fclose($fd); - PRINT "Creating rrd graph index\n"; + /* write the index.html script */ $rrdgraphindex = "{$g['vardb_path']}/rrd/index.html"; $fd = fopen("$rrdgraphindex", "w"); @@ -2122,7 +2122,7 @@ function enable_rrd_graphing() fclose($fd); /* print database creation errors. */ - PRINT "$rrdcreatel\n"; + /* kill off traffic collectors */ kill_traffic_collector(); |