Actions
Bug #6300
closedstatus_queues.php can cause php errors when queues are on disconnected interfaces
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Traffic Shaper (ALTQ)
Target version:
-
Start date:
05/02/2016
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:
Description
I set up a bridge with 3 interfaces and put HFSC queues on each interface. With the two 'internal' interfaces disconnected trying to view the queue status generates this error:
[02-May-2016 17:33:28 Europe/London] PHP Warning: Division by zero in /usr/local/www/status_queues.php on line 125
[02-May-2016 17:33:28 Europe/London] PHP Stack trace:
[02-May-2016 17:33:28 Europe/London] PHP 1. {main}() /usr/local/www/status_queues.php:0
That is removed by this patch: http://files.atx.pfsense.org/jimp/patches/queuestat_div0_fix.patch
The page can then be displayed without error or delay but appears to be counting stats incorrectly. See attached screenshot in which LANBRIDGE1 and LANBRIDGE2 are disconnected.
Files
Actions