Author: adrian.chadd
Date: Wed Jul 8 15:52:27 2009
New Revision: 14163
Modified:
branches/LUSCA_HEAD/src/store_dir.c
Log:
Look at fixing Issue 39 - convert the storedir capacity/used messages
to use uint64_percent().
Modified: branches/LUSCA_HEAD/src/store_dir.c
==============================================================================
--- branches/LUSCA_HEAD/src/store_dir.c (original)
+++ branches/LUSCA_HEAD/src/store_dir.c Wed Jul 8 15:52:27 2009
@@ -321,8 +321,8 @@
storeAppendPrintf(sentry, "Current Store Swap Size: %8d KB\n",
store_swap_size);
storeAppendPrintf(sentry, "Current Capacity : %d%% used, %d%%
free\n",
- percent((int) store_swap_size, (int) Config.Swap.maxSize),
- percent((int) (Config.Swap.maxSize - store_swap_size), (int)
Config.Swap.maxSize));
+ (int) uint64_percent(store_swap_size, Config.Swap.maxSize),
+ (int) uint64_percent((Config.Swap.maxSize - store_swap_size),
Config.Swap.maxSize));
/* FIXME Here we should output memory statistics */
/* Now go through each swapdir, calling its statfs routine */
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---