Commit aded138a authored by meir@redislabs.com's avatar meir@redislabs.com
Browse files

return value between 0 to 100 instead of 0 to 1.

parent 089ee597
......@@ -5903,12 +5903,12 @@ size_t RM_MallocSize(void* ptr){
* Return the a number between 0 to 1 indicating
* the amount of memory currently used.
* 0 - no memory limit
* 1 and above, memory limit reached.
* 100 and above, memory limit reached.
*/
float RM_GetUsedMemoryPercentage(){
float level;
getMaxmemoryState(NULL, NULL, NULL, &level);
return level;
return level * 100;
}
/* --------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment