aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/info.cpp
diff options
context:
space:
mode:
authornga <nga@yandex-team.ru>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:09 +0300
commit1f553f46fb4f3c5eec631352cdd900a0709016af (patch)
treea231fba2c03b440becaea6c86a2702d0bfb0336e /util/system/info.cpp
parentc4de7efdedc25b49cbea74bd589eecb61b55b60a (diff)
downloadydb-1f553f46fb4f3c5eec631352cdd900a0709016af.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/info.cpp')
-rw-r--r--util/system/info.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/system/info.cpp b/util/system/info.cpp
index cf6681e89a..9175c664b3 100644
--- a/util/system/info.cpp
+++ b/util/system/info.cpp
@@ -12,7 +12,7 @@
#if defined(_win_)
#include "winint.h"
#include <stdio.h>
-#else
+#else
#include <unistd.h>
#endif
@@ -175,17 +175,17 @@ size_t NSystemInfo::CachedNumberOfCpus() {
return NCpus;
}
-
+
size_t NSystemInfo::GetPageSize() noexcept {
#if defined(_win_)
SYSTEM_INFO sysInfo;
GetSystemInfo(&sysInfo);
-
+
return sysInfo.dwPageSize;
#else
return sysconf(_SC_PAGESIZE);
#endif
-}
+}
size_t NSystemInfo::TotalMemorySize() {
#if defined(_linux_) && defined(_64_)