Cleanup hugepages status
This commit is contained in:
parent
c7f133a6e3
commit
9ff4ec3288
5 changed files with 4 additions and 23 deletions
|
@ -34,7 +34,6 @@
|
|||
ClientStatus::ClientStatus()
|
||||
: m_currentStatus(Status::PAUSED),
|
||||
m_hasHugepages(false),
|
||||
m_isHugepagesEnabled(false),
|
||||
m_isCpuX64(false),
|
||||
m_hasCpuAES(false),
|
||||
m_hashFactor(1),
|
||||
|
@ -158,16 +157,6 @@ void ClientStatus::setHugepages(bool hasHugepages)
|
|||
m_hasHugepages = hasHugepages;
|
||||
}
|
||||
|
||||
bool ClientStatus::isHugepagesEnabled() const
|
||||
{
|
||||
return m_isHugepagesEnabled;
|
||||
}
|
||||
|
||||
void ClientStatus::setHugepagesEnabled(bool hugepagesEnabled)
|
||||
{
|
||||
m_isHugepagesEnabled = hugepagesEnabled;
|
||||
}
|
||||
|
||||
int ClientStatus::getHashFactor() const
|
||||
{
|
||||
return m_hashFactor;
|
||||
|
@ -400,10 +389,6 @@ bool ClientStatus::parseFromJson(const rapidjson::Document& document)
|
|||
m_hasHugepages = clientStatus["hugepages_available"].GetBool();
|
||||
}
|
||||
|
||||
if (clientStatus.HasMember("hugepages_enabled")) {
|
||||
m_isHugepagesEnabled = clientStatus["hugepages_enabled"].GetBool();
|
||||
}
|
||||
|
||||
if (clientStatus.HasMember("hash_factor")) {
|
||||
m_hashFactor = clientStatus["hash_factor"].GetInt();
|
||||
}
|
||||
|
@ -502,7 +487,6 @@ rapidjson::Value ClientStatus::toJson(rapidjson::MemoryPoolAllocator<rapidjson::
|
|||
clientStatus.AddMember("version", rapidjson::StringRef(m_version.c_str()), allocator);
|
||||
|
||||
clientStatus.AddMember("hugepages_available", m_hasHugepages, allocator);
|
||||
clientStatus.AddMember("hugepages_enabled", m_isHugepagesEnabled, allocator);
|
||||
clientStatus.AddMember("hash_factor", m_hashFactor, allocator);
|
||||
clientStatus.AddMember("cpu_is_x64", m_isCpuX64, allocator);
|
||||
clientStatus.AddMember("cpu_has_aes", m_hasCpuAES, allocator);
|
||||
|
|
|
@ -87,9 +87,6 @@ public:
|
|||
bool hasHugepages() const;
|
||||
void setHugepages(bool hasHugepages);
|
||||
|
||||
bool isHugepagesEnabled() const;
|
||||
void setHugepagesEnabled(bool hugepagesEnabled);
|
||||
|
||||
int getHashFactor() const;
|
||||
void setHashFactor(int hashFactor);
|
||||
|
||||
|
@ -170,7 +167,6 @@ private:
|
|||
std::string m_log;
|
||||
|
||||
bool m_hasHugepages;
|
||||
bool m_isHugepagesEnabled;
|
||||
bool m_isCpuX64;
|
||||
bool m_hasCpuAES;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue