diff --git a/reactor.c b/reactor.c index 5ec7d8a8a7..febf2c4af8 100644 --- a/reactor.c +++ b/reactor.c @@ -51,14 +51,14 @@ int init_reactor_size(void) if (pc>=80) { LM_ERR("required memory for a %d files reactor is over 80%% of" " the configured pkg mem (%luMb)\n", - open_files_limit, pkg_mem_size); + open_files_limit, pkg_mem_size/1024/1024); LM_ERR("Please consider increasing the pkg memory or reduce the" " limit of open files...Exiting\n"); return -1; } else if (pc>=50) { LM_WARN("required memory for a %d files reactor is over 50%% of" " the configured pkg mem (%luMb)\n", - open_files_limit, pkg_mem_size); + open_files_limit, pkg_mem_size/1024/1024); LM_WARN("PKG memory may not be enough at runtime (consider " "increasing it), still continuing\n"); } @@ -80,7 +80,7 @@ int init_reactor_size(void) if (reactor_size