diff --git a/include/sigar.h b/include/sigar.h index a0eb72a7..c8c6db82 100644 --- a/include/sigar.h +++ b/include/sigar.h @@ -175,13 +175,13 @@ typedef struct { /* RLIMIT_CORE */ sigar_uint64_t core_cur, core_max; /* RLIMIT_RSS */ - sigar_uint64_t rss_cur, rss_max; + sigar_uint64_t memory_cur, memory_max; /* RLIMIT_NPROC */ sigar_uint64_t processes_cur, processes_max; /* RLIMIT_NOFILE */ sigar_uint64_t open_files_cur, open_files_max; /* RLIMIT_AS */ - sigar_uint64_t address_space_cur, address_space_max; + sigar_uint64_t virtual_memory_cur, virtual_memory_max; /* RLIM_INFINITY */ sigar_uint64_t unlimited; } sigar_resource_limit_t; diff --git a/src/sigar.c b/src/sigar.c index 7c6c22d9..0deb59c3 100644 --- a/src/sigar.c +++ b/src/sigar.c @@ -852,10 +852,10 @@ static rlimit_field_t sigar_rlimits[] = { { RLIMIT_DATA, RlimitOffsets(data) }, { RLIMIT_STACK, RlimitOffsets(stack) }, { RLIMIT_CORE, RlimitOffsets(core) }, - { RLIMIT_RSS, RlimitOffsets(rss) }, + { RLIMIT_RSS, RlimitOffsets(memory) }, { RLIMIT_NPROC, RlimitOffsets(processes) }, { RLIMIT_NOFILE, RlimitOffsets(open_files) }, - { RLIMIT_AS, RlimitOffsets(address_space) }, + { RLIMIT_AS, RlimitOffsets(virtual_memory) }, { -1 } };