]> git.ipfire.org Git - thirdparty/sarg.git/commit
Rewrite the function to format numbers with a suffix KMGT
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 27 Jan 2013 14:33:35 +0000 (15:33 +0100)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 27 Jan 2013 14:33:35 +0000 (15:33 +0100)
commit844f18f2517af49eb8356792c714a3f235464eb6
tree35f9c882767aa1f4bc0e82d7908e9e11095cc423
parentd5a8da9d4972921353701936eb653fb2f6edb19b
Rewrite the function to format numbers with a suffix KMGT

The function use less string manipulation functions for one or two bytes
strings. The bytes are copied one at a time. It makes the code more
readable.

Suffixes up to yotta are supported.

A comma is used when configured to to so with use_comma in sarg.conf.
util.c