diff options
author | ayles <ayles@yandex-team.ru> | 2022-02-10 16:46:11 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:11 +0300 |
commit | 480eebba2142866e78db15cd7600bb3f452a2dbc (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /contrib/restricted/abseil-cpp/absl/time/time.cc | |
parent | d55028e9d9708f94c2d0d35b54ed50d4d7af0456 (diff) | |
download | ydb-480eebba2142866e78db15cd7600bb3f452a2dbc.tar.gz |
Restoring authorship annotation for <ayles@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/restricted/abseil-cpp/absl/time/time.cc')
-rw-r--r-- | contrib/restricted/abseil-cpp/absl/time/time.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/restricted/abseil-cpp/absl/time/time.cc b/contrib/restricted/abseil-cpp/absl/time/time.cc index 398b024324..1ec2026e25 100644 --- a/contrib/restricted/abseil-cpp/absl/time/time.cc +++ b/contrib/restricted/abseil-cpp/absl/time/time.cc @@ -47,7 +47,7 @@ namespace cctz = absl::time_internal::cctz; namespace absl { -ABSL_NAMESPACE_BEGIN +ABSL_NAMESPACE_BEGIN namespace { @@ -60,10 +60,10 @@ inline cctz::time_point<cctz::seconds> unix_epoch() { inline int64_t FloorToUnit(absl::Duration d, absl::Duration unit) { absl::Duration rem; int64_t q = absl::IDivDuration(d, unit, &rem); - return (q > 0 || rem >= ZeroDuration() || - q == std::numeric_limits<int64_t>::min()) - ? q - : q - 1; + return (q > 0 || rem >= ZeroDuration() || + q == std::numeric_limits<int64_t>::min()) + ? q + : q - 1; } inline absl::Time::Breakdown InfiniteFutureBreakdown() { @@ -496,5 +496,5 @@ struct tm ToTM(absl::Time t, absl::TimeZone tz) { return tm; } -ABSL_NAMESPACE_END +ABSL_NAMESPACE_END } // namespace absl |