summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplumbeo <plumbeo@users.noreply.github.com>2016-12-20 22:38:38 +0100
committerRenato Botelho <renato@netgate.com>2016-12-21 09:47:10 -0200
commit9e0e2b6130b6989cde6de9dc84e2f2a565ad6371 (patch)
treed6c22b8295b14b044216d866e46b541c0fd608a5
parent1992d9f946e7a14667ee95362a85c1e4a473da16 (diff)
downloadpfsense-9e0e2b6130b6989cde6de9dc84e2f2a565ad6371.zip
pfsense-9e0e2b6130b6989cde6de9dc84e2f2a565ad6371.tar.gz
Fix display of the number of states in the firewall rules page
For numbers greater than 1000 format_number() returns strings formatted like N.NNN K/M/G/T, that get cut to only the integer part if '%d' is used. (cherry picked from commit ef0e956e48ec1b97a307a546cbc24d00872cde1f)
-rw-r--r--src/usr/local/www/firewall_rules.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/firewall_rules.php b/src/usr/local/www/firewall_rules.php
index dfc49ef..cc4506b 100644
--- a/src/usr/local/www/firewall_rules.php
+++ b/src/usr/local/www/firewall_rules.php
@@ -121,7 +121,7 @@ function print_states($tracker) {
printf("data-content=\"evaluations: %s<br>packets: %s<br>bytes: %s<br>states: %s<br>state creations: %s\" data-html=\"true\">",
format_number($evaluations), format_number($packets), format_bytes($bytes),
format_number($states), format_number($stcreations));
- printf("%d/%s</a><br>", format_number($states), format_bytes($bytes));
+ printf("%s/%s</a><br>", format_number($states), format_bytes($bytes));
}
function delete_nat_association($id) {
OpenPOWER on IntegriCloud