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

Dag-Erling Smørgrav des at linpro.no
Tue Jan 8 17:51:42 CET 2008


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)

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no



More information about the varnish-commit mailing list