Age | Commit message (Collapse) | Author |
|
Avoid walking off the end of an array when trying to format a number larger than 1000T.
Motivated by #641, as reported by @shingchuang, but slightly
reimplemented.
|
|
Follow-on commit for #402, possible fix for #561.
|
|
Also add some more unit tests for this and prune unused code
from unit test program.
Fixes #402.
|
|
* Include stdint.h in files where its types are used
Signed-off-by: Moritz Kick <f1rebird@users.noreply.github.com>
* Fix type of len parameter passed to getsockopt
getsockopt expects socklen_t instead of int as its fifth argument
Signed-off-by: Moritz Kick <f1rebird@users.noreply.github.com>
* Remove unnecassary includes of netinet/tcp.h
also cleanup the second include of stdint.h in main.c
This commit fixes #331 and is a replacement for #344.
Signed-off-by: Moritz Kick <f1rebird@users.noreply.github.com>
|
|
|
|
We support using k, m, and g as suffices on input values. In most
cases these are 2-based suffixes (i.e. K == 1024) because they are
sizes of objects. In the case of rates, we need to use 10-based
suffices (i.e. K == 1000).
We do this by implementing (using copy-and-paste) a unit_atof_rate()
subroutine that parses strings similarly to unit_atof but using
10-based suffices instead.
Fixes #173.
|
|
Partial fix for compilation on some Solaris versions. Fixes #175.
Submitted by: @marksolaris
|
|
and lowercase k/m/g as 1000/1000000/1000000000. This was deemed to be
too confusing. Now both capital and lowercase give the powers-of-two version.
|
|
|
|
|
|
|
|
tweak format in unit_snprintf
|
|
gobbledeygook
|
|
|