Project

General

Profile

Bug #9938

Queue stats parser broken if bytes > 9999999999

Added by Lucas Held 6 days ago. Updated about 16 hours ago.

Status:
Pull Request Review
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Affected Version:
All
Affected Architecture:
All

Description

Hello,
currently the queue stats parser in the file "/etc/inc/shaper.inc" assumes that the bytes value does not exceed the length of 10. If this limit is exceed the page "/status_queues.php" displays wrong values. After a filter reload the bytes value is reset and the values are correct for a few minutes until the bytes value is too large again.

Decisive line from "/sbin/pfctl -s queue -v" output
Displays correct:

'  [ pkts:    6653183  bytes: 9993145948  dropped pkts:      0 bytes:      0 ]'

Displays incorrect:
'  [ pkts:    6661877  bytes: 10006205865  dropped pkts:      0 bytes:      0 ]'

History

#1 Updated by Jim Pingle 5 days ago

  • Due date deleted (12/01/2019)
  • Status changed from New to Pull Request Review
  • Start date deleted (12/01/2019)
  • Estimated time deleted (1.00 h)
  • Affected Version changed from 2.4.4-p3 to All

Also available in: Atom PDF