diff options
author | plumbeo <plumbeo@users.noreply.github.com> | 2016-12-20 22:38:38 +0100 |
---|---|---|
committer | plumbeo <plumbeo@users.noreply.github.com> | 2016-12-20 23:06:48 +0100 |
commit | ef0e956e48ec1b97a307a546cbc24d00872cde1f (patch) | |
tree | 50612819cc60a80c8af96942696ddb2f15bd1b5f | |
parent | 58dfe945f5decbd5c53e46e299794e1ef9faaf87 (diff) | |
download | pfsense-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.php | 2 |
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) { |