aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/format.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/stream/format.cpp
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/stream/format.cpp')
-rw-r--r--util/stream/format.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/stream/format.cpp b/util/stream/format.cpp
index 25f0162552..3996130df5 100644
--- a/util/stream/format.cpp
+++ b/util/stream/format.cpp
@@ -11,7 +11,7 @@ namespace NFormatPrivate {
return (value - res1 < res2 - value) ? (i64)res1 : (i64)res2;
}
- static inline IOutputStream& PrintDoubleShortly(IOutputStream& os, const double& d) {
+ static inline IOutputStream& PrintDoubleShortly(IOutputStream& os, const double& d) {
// General case: request 3 significant digits
// Side-effect: allows exponential representation
EFloatToStringMode mode = PREC_NDIGITS;
@@ -37,7 +37,7 @@ namespace NFormatPrivate {
}
template <>
-void Out<NFormatPrivate::THumanReadableSize>(IOutputStream& stream, const NFormatPrivate::THumanReadableSize& value) {
+void Out<NFormatPrivate::THumanReadableSize>(IOutputStream& stream, const NFormatPrivate::THumanReadableSize& value) {
ui64 base = value.Format == SF_BYTES ? 1024 : 1000;
ui64 base2 = base * base;
ui64 base3 = base * base2;
@@ -71,7 +71,7 @@ void Out<NFormatPrivate::THumanReadableSize>(IOutputStream& stream, const NForma
}
template <>
-void Out<NFormatPrivate::THumanReadableDuration>(IOutputStream& os, const NFormatPrivate::THumanReadableDuration& hr) {
+void Out<NFormatPrivate::THumanReadableDuration>(IOutputStream& os, const NFormatPrivate::THumanReadableDuration& hr) {
TTempBuf buf;
TMemoryOutput ss(buf.Data(), buf.Size());
@@ -107,7 +107,7 @@ void Out<NFormatPrivate::THumanReadableDuration>(IOutputStream& os, const NForma
char names[] = {'d', 'h', 'm', 's'};
bool first = true;
- for (size_t i = 0; i < Y_ARRAY_SIZE(times); ++i) {
+ for (size_t i = 0; i < Y_ARRAY_SIZE(times); ++i) {
if (times[i] > 0) {
if (!first) {
ss << ' ';
@@ -122,13 +122,13 @@ void Out<NFormatPrivate::THumanReadableDuration>(IOutputStream& os, const NForma
os.Write(buf.Data(), written);
}
-void Time(IOutputStream& l) {
+void Time(IOutputStream& l) {
l << millisec();
}
-void TimeHumanReadable(IOutputStream& l) {
+void TimeHumanReadable(IOutputStream& l) {
char timeStr[30];
- const time_t t = time(nullptr);
+ const time_t t = time(nullptr);
l << ctime_r(&t, timeStr);
}