Skip to content

Commit

Permalink
Fix display of the number of states in the firewall rules page
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
plumbeo committed Dec 20, 2016
1 parent 58dfe94 commit ef0e956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usr/local/www/firewall_rules.php
Expand Up @@ -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) {
Expand Down

0 comments on commit ef0e956

Please sign in to comment.