mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
make sure the update fields are in the correct order
This commit is contained in:
parent
d8804eabda
commit
ab482df18b
@ -2957,7 +2957,8 @@ function enable_rrd_graphing() {
|
||||
$rrdupdatesh .= "\n";
|
||||
$rrdupdatesh .= "# polling traffic for interface $ifname $realif \n";
|
||||
$rrdupdatesh .= "$rrdtool update $rrddbpath$ifname$traffic N:\\\n";
|
||||
$rrdupdatesh .= "`$pfctl -vvsI -i {$realif} | awk '/In4\/Pass|Out4\/Pass|In4\/Block|Out4\/Block/ {printf \$6 \":\"}'|sed -e 's/.\$//'`\n";
|
||||
$rrdupdatesh .= "`$pfctl -vvsI -i {$realif} | awk '/In4\/Pass|Out4\/Pass/ {printf \$6 \":\"}'`\\\n";
|
||||
$rrdupdatesh .= "`$pfctl -vvsI -i {$realif} | awk '/In4\/Block|Out4\/Block/ {printf \$6 \":\"}'|sed -e 's/.\$//'`\n";
|
||||
|
||||
/* PACKETS, set up the rrd file */
|
||||
if (!file_exists("$rrddbpath$ifname$packets")) {
|
||||
@ -2990,7 +2991,8 @@ function enable_rrd_graphing() {
|
||||
$rrdupdatesh .= "\n";
|
||||
$rrdupdatesh .= "# polling packets for interface $ifname $realif \n";
|
||||
$rrdupdatesh .= "$rrdtool update $rrddbpath$ifname$packets N:\\\n";
|
||||
$rrdupdatesh .= "`$pfctl -vvsI -i {$realif} | awk '/In4\/Pass|Out4\/Pass|In4\/Block|Out4\/Block/ {printf \$4 \":\"}'|sed -e 's/.\$//'`\n";
|
||||
$rrdupdatesh .= "`$pfctl -vvsI -i {$realif} | awk '/In4\/Pass|Out4\/Pass/ {printf \$4 \":\"}'`\\\n";
|
||||
$rrdupdatesh .= "`$pfctl -vvsI -i {$realif} | awk '/In4\/Block|Out4\/Block/ {printf \$4 \":\"}'|sed -e 's/.\$//'`\n";
|
||||
|
||||
/* WIRELESS, set up the rrd file */
|
||||
if($config['interfaces'][$ifname]['wireless']['mode'] == "bss") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user