From 6d71641ca56e53eb8e988b4e5c1676eb782503c3 Mon Sep 17 00:00:00 2001 From: Junaid Date: Mon, 4 Jul 2011 00:47:43 +0000 Subject: libglusterfs/common-utils: Added gf_uint64_2human_readable function. This function converts the given number to its corresponding representation in KB, MB, etc. Signed-off-by: Junaid Signed-off-by: Anand Avati BUG: 2829 (Display the quota limit as it is configured) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2829 --- libglusterfs/src/common-utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libglusterfs/src/common-utils.h') diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h index a1df3de35..9b15b9631 100644 --- a/libglusterfs/src/common-utils.h +++ b/libglusterfs/src/common-utils.h @@ -361,4 +361,6 @@ void _get_md5_str (char *out_str, size_t outlen, void gf_array_insertionsort (void *a, int l, int r, size_t elem_size, gf_cmp cmp); int gf_is_str_int (const char *value); + +char *gf_uint64_2human_readable (uint64_t); #endif /* _COMMON_UTILS_H */ -- cgit