(RADIATOR) Acct-Output-Octets and values larger than 4Gb
João Pedro Gonçalves
joaop at co.sapo.pt
Wed Feb 2 17:27:57 CST 2005
Hi, you can use a hook to convert the data, using a code similar to
this:
use constant GIGAWORD => 2**32;
$octets += ($gigawords * GIGAWORD);
Hope this Helps,
João Pedro Gonçalves
On Feb 2, 2005, at 22:38, Brian Morris wrote:
> Hi Folks,
>
> I am trying to record the number of bytes (or Mb) downloaded by our
> broadband customers but Acct-Output-Octets loops back to zero once the
> customer has downloaded more than 4Gb in a session (unsigned integer
> limit).
>
> We also receive ERX attributes Unisphere-Output-Gigapackets and
> Unisphere-Output-Gigawords but these are defined as integer values so
> I am assuming they only report the number of whole Gigs.
>
> So I am looking for a way of recording the number of Mb downloaded
> with some accuracy better than whole Gb when the user has downloaded
> more than 4Gb...
>
> I guess one method would be to calculate it based on a formula
> something like TotalMb = (((gigawords div
> 4)+acctoutputoctets)/1000000)
>
> But is there a better way???
>
> Regards,
>
> Brian Morris
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1563 bytes
Desc: not available
URL: <http://www.open.com.au/pipermail/radiator/attachments/20050202/8e49d7a6/attachment.bin>
More information about the radiator
mailing list