return value between 0 to 100 instead of 0 to 1.
This commit is contained in:
parent
2c5a3413dc
commit
667c9cd8c7
@ -5903,12 +5903,12 @@ size_t RM_MallocSize(void* ptr){
|
|||||||
* Return the a number between 0 to 1 indicating
|
* Return the a number between 0 to 1 indicating
|
||||||
* the amount of memory currently used.
|
* the amount of memory currently used.
|
||||||
* 0 - no memory limit
|
* 0 - no memory limit
|
||||||
* 1 and above, memory limit reached.
|
* 100 and above, memory limit reached.
|
||||||
*/
|
*/
|
||||||
float RM_GetUsedMemoryPercentage(){
|
float RM_GetUsedMemoryPercentage(){
|
||||||
float level;
|
float level;
|
||||||
getMaxmemoryState(NULL, NULL, NULL, &level);
|
getMaxmemoryState(NULL, NULL, NULL, &level);
|
||||||
return level;
|
return level * 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user