diff --git a/index.html b/index.html
index 49d82dd1..2c6d5613 100644
--- a/index.html
+++ b/index.html
@@ -567,7 +567,8 @@
tooltip += '\n';
tooltip += "CPU Cache L2/L3: " + (row.client_status.cpu_l2 / 1024) + " MB/"+ (row.client_status.cpu_l3 / 1024) + " MB";
tooltip += '\n';
- tooltip += "Huge Pages: " + (row.client_status.hugepages_available ? " available" : " unavailable");
+ tooltip += "Huge Pages: " + (row.client_status.hugepages_available ? " available, " : " unavailable, ");
+ tooltip += (row.client_status.hugepages_enabled ? "enabled (" + row.client_status.total_hugepages + "/" + row.client_status.total_pages + ")" : "disabled");
tooltip += '\n';
tooltip += "Used Threads: " + row.client_status.current_threads;
tooltip += (row.client_status.hash_factor > 1 ? " [" + row.client_status.hash_factor + "x multi hash mode]" :"");
diff --git a/src/cc/ClientStatus.cpp b/src/cc/ClientStatus.cpp
index ceefd778..1a040907 100644
--- a/src/cc/ClientStatus.cpp
+++ b/src/cc/ClientStatus.cpp
@@ -426,10 +426,6 @@ bool ClientStatus::parseFromJson(const rapidjson::Document& document)
m_isHugepagesEnabled = clientStatus["hugepages_enabled"].GetBool();
}
- if (clientStatus.HasMember("hash_factor")) {
- m_hashFactor = clientStatus["hash_factor"].GetInt();
- }
-
if (clientStatus.HasMember("cpu_is_x64")) {
m_isCpuX64 = clientStatus["cpu_is_x64"].GetBool();
}
@@ -454,6 +450,18 @@ bool ClientStatus::parseFromJson(const rapidjson::Document& document)
m_hashrateHighest = clientStatus["hashrate_highest"].GetDouble();
}
+ if (clientStatus.HasMember("hash_factor")) {
+ m_hashFactor = clientStatus["hash_factor"].GetInt();
+ }
+
+ if (clientStatus.HasMember("total_pages")) {
+ m_totalPages = clientStatus["total_pages"].GetInt();
+ }
+
+ if (clientStatus.HasMember("total_hugepages")) {
+ m_totalHugepages = clientStatus["total_hugepages"].GetInt();
+ }
+
if (clientStatus.HasMember("current_threads")) {
m_currentThreads = clientStatus["current_threads"].GetInt();
}
@@ -525,7 +533,6 @@ rapidjson::Value ClientStatus::toJson(rapidjson::MemoryPoolAllocator