diff --git a/configure.ac b/configure.ac index 53b2c6c1e..691418e48 100644 --- a/configure.ac +++ b/configure.ac @@ -936,6 +936,7 @@ RB_CHK_SYSHEADER(gnu/lib-names.h, [GNU_LIB_NAMES_H]) dnl linux platform RB_CHK_SYSHEADER(sys/auxv.h, [SYS_AUXV_H]) +RB_CHK_SYSHEADER(sys/sysinfo.h, [SYS_SYSINFO_H]) RB_CHK_SYSHEADER(sys/eventfd.h, [SYS_EVENTFD_H]) RB_CHK_SYSHEADER(sys/inotify.h, [SYS_INOTIFY_H]) RB_CHK_SYSHEADER(sys/sysmacros.h, [SYS_SYSMACROS_H]) diff --git a/include/ircd/info.h b/include/ircd/info.h index 3fe711c07..2cfba4a99 100644 --- a/include/ircd/info.h +++ b/include/ircd/info.h @@ -44,12 +44,14 @@ namespace ircd::info extern const string_view compiled; extern const string_view startup; - // System information + // System configuration / information extern const size_t page_size; extern const size_t iov_max; extern const size_t aio_max; extern const size_t aio_reqprio_max; extern const size_t clk_tck; + extern const size_t total_ram; + extern const size_t total_swap; // Resource limitations extern const size_t rlimit_as; diff --git a/ircd/info.cc b/ircd/info.cc index bc0e025d4..5c01b748a 100644 --- a/ircd/info.cc +++ b/ircd/info.cc @@ -8,9 +8,10 @@ // copyright notice and this permission notice is present in all copies. The // full license for this software is available in the LICENSE file. -#include