r2331 - in trunk/varnish-cache: include lib/libvarnish

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Jan 9 11:03:44 CET 2008


In message <ujrtzlodzvl.fsf at login.linpro.no>, =?utf-8?Q?Dag-Erling_Sm=C3=B8rgra
v?= writes:
>phk at projects.linpro.no writes:
>> Log:
>> Add a str2bytes() function which converts byte size strings to
>> number of bytes.
>>
>> In difference from for instance FreeBSD's relatively newly added
>> expand_number(), this function also takes floatingpoint specifications
>> like "1.5T".
>
>I'm uncomfortable with the use of sscanf(), and the fact that it
>apparently accepts e.g. "100B" but not "100MB" (it should accept both)

Add to things to do after I wash my dog :-)

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-commit mailing list