debug statements to debugs statements

2007-04-18 Thread Tsantilas Christos
Hi all, Here is a perl script which can be used to convert debug statements to new debugs statements :-) . It mostly works or just do standard errors. It does not formats the output. I think the astyle can do the rest work. Does not convert the debug statements, if the format string contains

Re: debug statements to debugs statements

2007-04-18 Thread Adrian Chadd
On Wed, Apr 18, 2007, Tsantilas Christos wrote: Hi all, Here is a perl script which can be used to convert debug statements to new debugs statements :-) . It mostly works or just do standard errors. It does not formats the output. I think the astyle can do the rest work. Does not convert

Re: debug statements to debugs statements

2007-04-18 Thread Alex Rousskov
On Wed, 2007-04-18 at 11:30 +0300, Tsantilas Christos wrote: Here is a perl script which can be used to convert debug statements to new debugs statements :-) . It mostly works or just do standard errors. It does not formats the output. I think the astyle can do the rest work. Does not

Re: squid3-largeobj squid3/src AccessLogEntry.h,1.7,1.7.10.1 HttpHeader.cc,1.40,1.40.6.1 HttpHeader.h,1.18,1.18.6.1 HttpHeaderTools.cc,1.21,1.21.6.1 HttpMsg.cc,1.29,1.29.6.1 HttpMsg.h,1.14,1.14.6.1 Ht

2007-04-18 Thread Robert Collins
On Wed, 2007-04-18 at 20:52 +0200, Guido Serassio wrote: I think that here should be used the standard ISO C99 macro PRId64 like in Squid 2.6. This allow the portability of the code: on Windows %lld is not available, when on some Unix 64 bit platforms (HP Tru64 is one) %ld must be used

Re: cvs commit: squid3/src Store.h protos.h store.cc store_client.cc store_swapout.cc

2007-04-18 Thread Tsantilas Christos
Hi Duane, the StoreEntry::swapOut() does not compile when SIZEIF_OFF_T==4 I am using the following patch, but I am not sure if it is OK ... Regards, Christos --- store_swapout.cc18 Apr 2007 00:47:23 - 1.20 +++ store_swapout.cc18 Apr 2007 18:24:04 - @@ -234,8 +234,8 @@

Re: debug statements to debugs statements

2007-04-18 Thread Tsantilas Christos
Thanks Alex, Also I handled some other minor cases and run it in my sources. Some statistics: grep -n Converted CONVERT.log |wc -l - 2316 grep -n LeftAsIs CONVERT.log |wc -l - 137 Only 5-6 cases needed some work by me. Now compiles and the debug info I am getting looks OK. I will

Re: Rate Limiting using SQUID

2007-04-18 Thread Henrik Nordstrom
tis 2007-04-17 klockan 21:32 -0700 skrev Anand Lakshminath: Hi All, Is there a way to configure SQUID to rate limit requests to origin webservers. Basically, we don't want to hit any given website too hard and would like to throttle say 1 request per second. The closest we have is the