diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/IceGrid/NodeI.cpp | 2 | ||||
-rw-r--r-- | cpp/src/IceGrid/NodeI.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/NodeI.cpp b/cpp/src/IceGrid/NodeI.cpp index cdd8cc30999..3c4f7f9304f 100644 --- a/cpp/src/IceGrid/NodeI.cpp +++ b/cpp/src/IceGrid/NodeI.cpp @@ -645,7 +645,7 @@ NodeI::keepAlive() nl.n_value = 0; if(knlist(&nl, 1, sizeof(nl)) != 0) { - if(pread(kmem, avenrun, sizeof(avenrun), nl.n_value) >= sizeof(avenrun)) + if(pread(_kmem, avenrun, sizeof(avenrun), nl.n_value) >= sizeof(avenrun)) { info.load1 = avenrun[0] / 65535.0f; info.load5 = avenrun[1] / 65535.0f; diff --git a/cpp/src/IceGrid/NodeI.h b/cpp/src/IceGrid/NodeI.h index 43484f2aff4..0af035bb23f 100644 --- a/cpp/src/IceGrid/NodeI.h +++ b/cpp/src/IceGrid/NodeI.h @@ -90,6 +90,9 @@ private: int _last15Total; #else int _nproc; +#ifdef _AIX + int _kmem; +#endif #endif struct PatchDirectory |