Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/config/utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ std::string to_normal_host(const std::string& host,
}
}

#if defined(HAVE_LINUX)
std::optional<uint64_t> get_memory_setting(std::string name) NOEXCEPT
{
#if defined(HAVE_LINUX)
try
{
uint64_t value{};
Expand All @@ -101,10 +101,15 @@ std::optional<uint64_t> get_memory_setting(std::string name) NOEXCEPT
catch (...)
{
}
#endif

return {};
}
#else
std::optional<uint64_t> get_memory_setting(std::string) NOEXCEPT
{
return {};
}
#endif

} // namespace config
} // namespace network
Expand Down
Loading