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

This commit is contained in:
meir@redislabs.com 2019-11-06 11:25:21 +02:00
parent 089ee5979d
commit aded138a59

View File

@ -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;
}
/* --------------------------------------------------------------------------