Adjust the number of decimals shown with sizes based on the number size,
 as is done with the ratio.
This commit is contained in:
Josh Elsasser
2006-02-24 14:07:38 +00:00
parent 2466d6e3bc
commit ceefe97ce2
4 changed files with 17 additions and 14 deletions

View File

@@ -48,10 +48,10 @@ typedef void (*callbackfunc_t)(void*);
gboolean
strbool(const char *str);
/* return a human-readable string for the size given in bytes with the
requested number of decimal places. the string must be g_free()d */
/* return a human-readable string for the size given in bytes.
the string must be g_free()d */
char *
readablesize(guint64 size, int decimals);
readablesize(guint64 size);
/* returns a string representing the download ratio.
the string must be g_free()d */