Project

General

Profile

Actions

Bug #9938

closed

Queue stats parser broken if bytes > 9999999999

Added by Lucas Held over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Category:
Web Interface
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
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 ]'


Files

Actions

Also available in: Atom PDF