Project

General

Profile

Actions

Bug #6300

closed

status_queues.php can cause php errors when queues are on disconnected interfaces

Added by Steve Wheeler about 9 years ago. Updated about 9 years ago.

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

Selection_075.png (42.2 KB) Selection_075.png Steve Wheeler, 05/02/2016 12:40 PM
Actions #1

Updated by Chris Buechler about 9 years ago

  • Status changed from New to Duplicate
  • Affected Version deleted (2.3)
  • Affected Architecture added
  • Affected Architecture deleted (amd64)

didn't notice this, I duplicated it in #6329. it was fixed there

Actions

Also available in: Atom PDF