diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-02-06 10:40:32 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-02-06 15:54:47 -0200 |
commit | 5e5d5abc0f7d1906d8ae793e7665fd2056d37e4d (patch) | |
tree | dfa5f6f4cdf94d9f68418fb7579b460072b90e4d /etc/inc/rrd.inc | |
parent | 3ec026a46af7feb94d67e483340b663105354f8d (diff) | |
download | pfsense-5e5d5abc0f7d1906d8ae793e7665fd2056d37e4d.zip pfsense-5e5d5abc0f7d1906d8ae793e7665fd2056d37e4d.tar.gz |
Fix indent and whitespaces
Diffstat (limited to 'etc/inc/rrd.inc')
-rw-r--r-- | etc/inc/rrd.inc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/etc/inc/rrd.inc b/etc/inc/rrd.inc index 841ee45..61f89a5 100644 --- a/etc/inc/rrd.inc +++ b/etc/inc/rrd.inc @@ -104,7 +104,7 @@ function migrate_rrd_format($rrdoldxml, $rrdnewxml) { $numrranew = count($rrdnewxml['rra']); $numdsnew = count($rrdnewxml['ds']); log_error(sprintf(gettext('Import RRD has %1$s DS values and %2$s RRA databases, new format RRD has %3$s DS values and %4$s RRA databases'), $numdsold, $numrraold, $numdsnew ,$numrranew)); - + /* add data sources not found in the old array from the new array */ $i = 0; foreach($rrdnewxml['ds'] as $ds) { @@ -194,7 +194,7 @@ function migrate_rrd_format($rrdoldxml, $rrdnewxml) { function enable_rrd_graphing() { global $config, $g, $altq_list_queues; - if($g['booting']) + if($g['booting']) echo gettext("Generating RRD graphs..."); $rrddbpath = "/var/db/rrd/"; @@ -382,7 +382,7 @@ function enable_rrd_graphing() { $rrdcreate .= "RRA:AVERAGE:0.5:5:1000 "; $rrdcreate .= "RRA:AVERAGE:0.5:60:1000 "; $rrdcreate .= "RRA:AVERAGE:0.5:720:3000 "; - + create_new_rrd($rrdcreate); } @@ -406,7 +406,7 @@ function enable_rrd_graphing() { $rrdcreate .= "RRA:AVERAGE:0.5:5:1000 "; $rrdcreate .= "RRA:AVERAGE:0.5:60:1000 "; $rrdcreate .= "RRA:AVERAGE:0.5:720:3000 "; - + create_new_rrd($rrdcreate); } @@ -671,7 +671,7 @@ function enable_rrd_graphing() { $rrdupdatesh .= " $awk '{getline active;getline inactive;getline free;getline cache;getline wire;printf "; $rrdupdatesh .= "((active/$0) * 100)\":\"((inactive/$0) * 100)\":\"((free/$0) * 100)\":\"((cache/$0) * 100)\":\"(wire/$0 * 100)}'`\n"; $rrdupdatesh .= "$rrdtool update $rrddbpath$ifname$mem N:\${MEM}\n"; - + /* End Memory statistics */ /* SPAMD, set up the spamd rrd file */ @@ -736,13 +736,13 @@ function enable_rrd_graphing() { if($g['booting']) { mwexec("$rrdtool update $rrddbpath$ifname$captiveportalconcurrent N:U"); } - + /* the Captive Portal stats gathering function. */ $rrdupdatesh .= "\n"; $rrdupdatesh .= "# polling Captive Portal for number of concurrent users\n"; $rrdupdatesh .= "CP=`$php -q $captiveportal_gather concurrent`\n"; $rrdupdatesh .= "$rrdtool update $rrddbpath$ifname$captiveportalconcurrent \${CP}\n"; - + $ifname= "captiveportal"; if (!file_exists("$rrddbpath$ifname$captiveportalloggedin")) { $rrdcreate = "$rrdtool create $rrddbpath$ifname$captiveportalloggedin --step $rrdcaptiveportalinterval "; @@ -805,9 +805,9 @@ function enable_rrd_graphing() { chown($database, "nobody"); } - if($g['booting']) + if($g['booting']) echo gettext("done.") . "\n"; - + } function kill_traffic_collector() { |