mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
return value between 0 to 100 instead of 0 to 1.
This commit is contained in:
parent
089ee5979d
commit
aded138a59
@ -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…
Reference in New Issue
Block a user