The delay_parameter it's in bytes not bits. Try and tell if work !!
On Wed, Mar 21, 2012 at 2:11 AM, Muhammad Yousuf Khan <sirtcp_at_gmail.com> wrote:
> 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 Thu Mar 22 2012 - 15:24:59 MDT
This archive was generated by hypermail 2.2.0 : Fri Mar 23 2012 - 12:00:04 MDT