feature: add per server edns-client-subnet support
This commit is contained in:
@@ -45,12 +45,12 @@
|
||||
#include <sys/prctl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/statvfs.h>
|
||||
#include <sys/sysinfo.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <unwind.h>
|
||||
#include <sys/sysinfo.h>
|
||||
|
||||
#define TMP_BUFF_LEN_32 32
|
||||
|
||||
@@ -1230,9 +1230,9 @@ void get_compiled_time(struct tm *tm)
|
||||
unsigned long get_system_mem_size(void)
|
||||
{
|
||||
struct sysinfo memInfo;
|
||||
sysinfo (&memInfo);
|
||||
long long totalMem = memInfo.totalram;
|
||||
totalMem *= memInfo.mem_unit;
|
||||
sysinfo(&memInfo);
|
||||
long long totalMem = memInfo.totalram;
|
||||
totalMem *= memInfo.mem_unit;
|
||||
|
||||
return totalMem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user