Update sys info

This commit is contained in:
2023-08-27 13:55:23 +02:00
parent 317d5c0e3c
commit d1cef56090
4 changed files with 10 additions and 7 deletions

View File

@@ -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;
}