Update sys info
This commit is contained in:
@@ -99,7 +99,6 @@ namespace openVulkanoCpp
|
||||
rlimit limit;
|
||||
if (getrlimit(RLIMIT_AS, &limit) == 0)
|
||||
{
|
||||
std::cout << "Maximum memory usage: " << limit.rlim_cur << " bytes" << std::endl;
|
||||
return limit.rlim_cur;
|
||||
}
|
||||
Logger::PERF->error("Failed to query max application memory");
|
||||
@@ -158,7 +157,7 @@ namespace openVulkanoCpp
|
||||
struct OsInfo
|
||||
{
|
||||
std::string osName, osNameFormatted;
|
||||
Version version;
|
||||
OsVersion version;
|
||||
|
||||
static std::string TryRead(const std::string line, std::string_view prefix)
|
||||
{
|
||||
@@ -170,7 +169,7 @@ namespace openVulkanoCpp
|
||||
return "";
|
||||
}
|
||||
|
||||
static Version ParseVersionString(char* str)
|
||||
static OsVersion ParseVersionString(char* str)
|
||||
{
|
||||
int ver[3];
|
||||
int i = 0;
|
||||
@@ -252,7 +251,7 @@ namespace openVulkanoCpp
|
||||
return osInfo.osName;
|
||||
}
|
||||
|
||||
Version SystemInfo::GetOsVersion()
|
||||
OsVersion SystemInfo::GetOsVersion()
|
||||
{
|
||||
return osInfo.version;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user