Remove memory warning message in shared lib

False warning on some OSs, especially on Linux when loaded during runtime.
The caller then has to take care of memory available
This commit is contained in:
Holger Vogt 2019-01-13 10:35:46 +01:00
parent be6eca1dbb
commit 9dd47e3029
1 changed files with 6 additions and 0 deletions

View File

@ -141,6 +141,12 @@ ft_ckspace(void)
{
unsigned long long usage, limit;
#ifdef SHARED_MODULE
/* False warning on some OSs, especially on Linux when loaded during runtime.
The caller then has to take care of memory available */
return;
#endif
#if defined(HAVE_WIN32) || defined(HAVE__PROC_MEMINFO)
get_procm(&mem_ng_act);
usage = mem_ng_act.size;