Project

General

Profile

Actions

Bug #7835

closed

freeradius unit wrong for varusersmaxbandwidthup and varusersmaxbandwidthdown

Added by Azure it over 6 years ago. Updated over 6 years ago.

Status:
Not a Bug
Priority:
Low
Assignee:
-
Category:
FreeRADIUS
Target version:
-
Start date:
08/31/2017
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

Description

When we add a new radius user, we can set Maximum Bandwidth Down/Up and in the help we can read:
Enter the maximum bandwidth for download in in kilobits per second (Kbps).
offtopic 'in' is repeated.

At the file /usr/local/pkg/freeradius.inc it will say the GUI uses KiloBit but it uses Kilobit.
and will multiply by 1024 when it should be 1000
// GUI uses KiloBit but RADIUS needs Bits so we do a multiplication
$varusersmaxbandwidthup = ($users['varusersmaxbandwidthup'] ?: '');
$varusersmaxbandwidthup = $varusersmaxbandwidthup * 1024;
$varusersmaxbandwidthdown = ($users['varusersmaxbandwidthdown'] ?: '');
$varusersmaxbandwidthdown = $varusersmaxbandwidthdown * 1024;

regards

Actions

Also available in: Atom PDF