diff options
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/common-utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h index 72613acba3b..082a44403dc 100644 --- a/libglusterfs/src/common-utils.h +++ b/libglusterfs/src/common-utils.h @@ -123,6 +123,8 @@ void trap (void); #define GF_LEASE_ID_BUF_SIZE ((LEASE_ID_SIZE * 2) + \ (LEASE_ID_SIZE / 2)) +#define GF_PERCENTAGE(val, total) (((val)*100)/(total)) + enum _gf_boolean { _gf_false = 0, |