diff --git a/src/module.c b/src/module.c index 75c98f12d..1671934b8 100644 --- a/src/module.c +++ b/src/module.c @@ -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; } /* --------------------------------------------------------------------------