[squid-users] Re: Need some help about delay_parameters directive

From: Muhammad Yousuf Khan <sirtcp_at_gmail.com>
Date: Wed, 21 Mar 2012 11:11:21 +0500

please help me. delay_parameter 1 32000/10240000<---- this means if i
complete10MB what ever the size would be regardless of that my
bandwidth would be limited to 32KB but in this case i can only able to
download 5MB and then my bandwidth shrink downs to 32KB. why ......
please help me. i search squid website it is clearly stating that
delay parameters accepts "bytes" as a value. please help

Thanks.

On Tue, Mar 20, 2012 at 6:58 PM, Muhammad Yousuf Khan <sirtcp_at_gmail.com> wrote:
> here is my acl and i want to limit download after every 10 MB of
> download. now i am a bit confuse now. why this value giving me
> expected result.
> my_ip src 10.51.100.240
> delay_pools 1
> delay_class 1 1
> delay_parameters 1 10000/20000000
> delay_access 1 allow my_ip
>
> according to my learning and understanding with squid delay parameters
> directive, it accepts bites as values. please correct me if wrong
> because i am a newbie.
> so according to my computation the calculation should be some thing
> like that. 10M should be
>
> 10 x1024 = 10240KB
> 10240x1024 = 10485760 Bytes
> 10485760 x 8 = 83886080 bits
>
> now 20000000 is giving me the desired result except 83886080. why?
>
> Please correct me and tell me what is wrong with my calculation or
> understanding.
>
> Thanks,
>
> MYK
Received on Wed Mar 21 2012 - 06:11:30 MDT

This archive was generated by hypermail 2.2.0 : Thu Mar 22 2012 - 12:00:03 MDT