summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplumbeo <plumbeo@users.noreply.github.com>2016-12-20 22:38:38 +0100
committerplumbeo <plumbeo@users.noreply.github.com>2016-12-20 23:06:48 +0100
commitef0e956e48ec1b97a307a546cbc24d00872cde1f (patch)
tree50612819cc60a80c8af96942696ddb2f15bd1b5f
parent58dfe945f5decbd5c53e46e299794e1ef9faaf87 (diff)
downloadpfsense-ef0e956e48ec1b97a307a546cbc24d00872cde1f.zip
pfsense-ef0e956e48ec1b97a307a546cbc24d00872cde1f.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.
-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 56899cc..41dc6e9 100644
--- a/src/usr/local/www/firewall_rules.php
+++ b/src/usr/local/www/firewall_rules.php
@@ -89,7 +89,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