]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
exporter: mark BlockTimer::get_ms() const
authorKefu Chai <tchaikov@gmail.com>
Tue, 13 Feb 2024 06:19:07 +0000 (14:19 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 13 Feb 2024 06:44:08 +0000 (14:44 +0800)
commit218f3632ca951b2524c7945ac37975b27b1c01f7
treeb44851552c051eda4a0fd6693f761c70a039c33d
parent8bbeeb80a58adb816caf9ac91bfaae216408e14d
exporter: mark BlockTimer::get_ms() const

this function does not mutate the state of `BlockTimer`, so mark
it with `const` specifier, for better readability.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/exporter/util.cc
src/exporter/util.h