aboutsummaryrefslogtreecommitdiffstats
path: root/util/system
diff options
context:
space:
mode:
authorf0b0s <f0b0s@yandex-team.ru>2022-02-10 16:46:51 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:51 +0300
commitcdae02d225fb5b3afbb28990e79a7ac6c9125327 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/system
parentdeabc5260ac2e17b8f5152ee060bec1740613540 (diff)
downloadydb-cdae02d225fb5b3afbb28990e79a7ac6c9125327.tar.gz
Restoring authorship annotation for <f0b0s@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system')
-rw-r--r--util/system/hp_timer.h28
-rw-r--r--util/system/mem_info.cpp2
-rw-r--r--util/system/thread.cpp2
3 files changed, 16 insertions, 16 deletions
diff --git a/util/system/hp_timer.h b/util/system/hp_timer.h
index fe893017ab..0a4c252ec2 100644
--- a/util/system/hp_timer.h
+++ b/util/system/hp_timer.h
@@ -14,23 +14,23 @@ namespace NHPTimer {
double GetClockRate() noexcept;
// same as GetClockRate, but in integer
ui64 GetCyclesPerSecond() noexcept;
-}
-
-struct THPTimer {
+}
+
+struct THPTimer {
THPTimer() noexcept {
- Reset();
- }
+ Reset();
+ }
void Reset() noexcept {
- NHPTimer::GetTime(&Start);
- }
+ NHPTimer::GetTime(&Start);
+ }
double Passed() const noexcept {
- NHPTimer::STime tmp = Start;
- return NHPTimer::GetTimePassed(&tmp);
- }
+ NHPTimer::STime tmp = Start;
+ return NHPTimer::GetTimePassed(&tmp);
+ }
double PassedReset() noexcept {
- return NHPTimer::GetTimePassed(&Start);
- }
+ return NHPTimer::GetTimePassed(&Start);
+ }
-private:
- NHPTimer::STime Start;
+private:
+ NHPTimer::STime Start;
};
diff --git a/util/system/mem_info.cpp b/util/system/mem_info.cpp
index bd6edc2076..aa51ae3b16 100644
--- a/util/system/mem_info.cpp
+++ b/util/system/mem_info.cpp
@@ -148,7 +148,7 @@ namespace NMemInfo {
}
struct proc_taskinfo taskInfo;
const int r = proc_pidinfo(pid, PROC_PIDTASKINFO, 0, &taskInfo, sizeof(taskInfo));
-
+
if (r != sizeof(taskInfo)) {
int err = errno;
TString errtxt = LastSystemErrorText(err);
diff --git a/util/system/thread.cpp b/util/system/thread.cpp
index 3251c6e2e5..6236746c2d 100644
--- a/util/system/thread.cpp
+++ b/util/system/thread.cpp
@@ -450,7 +450,7 @@ void TThread::SetCurrentThreadName(const char* name) {
#if defined(_freebsd_)
pthread_t thread = pthread_self();
- pthread_set_name_np(thread, name);
+ pthread_set_name_np(thread, name);
#elif defined(_linux_)
prctl(PR_SET_NAME, name, 0, 0, 0);
#elif defined(_darwin_)