From: Wanderlei H. <wan...@gm...> - 2016-05-12 01:00:45
|
There is some limitation in the function " size_to_uint64" for not allowing terabyte unit? If not, could be included in the next release? /* * Convert a size in bytes to uint64_t * Returns false: if error true: if OK, and value stored in value */ bool size_to_uint64(char *str, int str_len, uint64_t *value) { /* first item * not used */ static const char *mod[] = {"*", "k", "kb", "m", "mb", "g", "gb", NULL}; return strunit_to_uint64(str, str_len, value, mod); } Best Regards *Wanderlei Hüttel* http://www.huttel.com.br |