diff options
Diffstat (limited to 'src/common/options.h')
-rw-r--r-- | src/common/options.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/common/options.h b/src/common/options.h index 6adee886d03..bdf1ab18ed9 100644 --- a/src/common/options.h +++ b/src/common/options.h @@ -399,5 +399,26 @@ struct Option { } }; -extern const std::vector<Option> ceph_options; +constexpr unsigned long long operator"" _min (unsigned long long min) { + return min * 60; +} +constexpr unsigned long long operator"" _hr (unsigned long long hr) { + return hr * 60 * 60; +} +constexpr unsigned long long operator"" _day (unsigned long long day) { + return day * 24 * 60 * 60; +} +constexpr unsigned long long operator"" _K (unsigned long long n) { + return n << 10; +} +constexpr unsigned long long operator"" _M (unsigned long long n) { + return n << 20; +} +constexpr unsigned long long operator"" _G (unsigned long long n) { + return n << 30; +} +constexpr unsigned long long operator"" _T (unsigned long long n) { + return n << 40; +} +extern const std::vector<Option> ceph_options; |