Project

General

Profile

Actions

Bug #8468

closed

Status / Queues show mostly NaN

Added by Kris Lou about 6 years ago. Updated over 3 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Traffic Shaper (ALTQ)
Target version:
-
Start date:
04/18/2018
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4.3
Affected Architecture:
amd64

Description

While using shaping on multiple interfaces (and only priq in my situation), many of the columns only show NaN.

For me:
  • Borrows = all NaN
  • Suspends = all NaN
  • Drops = SOME NaN, some 0, some numeric (currently less than 2k)

pftop -v queue -s1 shows "0" for all of the NaN Drops (and 391 in one instance where the Status / Queues shows 39)

This worked in 2.4.2

https://forum.pfsense.org/index.php?topic=143909.0


Files

status_queues_page.png (220 KB) status_queues_page.png Jo S, 11/28/2019 08:58 AM
diag_pftop_page.png (223 KB) diag_pftop_page.png Jo S, 11/28/2019 08:58 AM
Actions #1

Updated by Jim Pingle over 4 years ago

  • Status changed from New to Rejected

Not enough information here for a valid bug report.

Actions #2

Updated by Jo S over 4 years ago

Same problem here, some values are displayed as NaN in the status_queues page.
2 screenshots attached, the diag_pftop page and the status_queues page.

Pfsense version:
2.4.4-RELEASE-p3 (amd64)
built on Wed May 15 18:53:44 EDT 2019
FreeBSD 11.2-RELEASE-p10

Actions #3

Updated by Konstantin Svist over 3 years ago

Not sure why this is rejected, a bunch of users see this issue.
It's a quick patch, just edit /usr/local/www/status_queues.php and append || 0 to the following lines:

-                                        borrows = parseFloat(queue['borrows']);
-                                        suspends = parseFloat(queue['suspends']);
+                                        borrows = parseFloat(queue['borrows'] || 0);
+                                        suspends = parseFloat(queue['suspends'] || 0);

Posted this workaround on https://forum.netgate.com/topic/126924/queues-show-nan-values-why/12?_=1611026552220
Works well for me

Actions

Also available in: Atom PDF