From f513a67e903568ce9c407ea8e7d57e32584fac36 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Fri, 2 Aug 2019 13:10:21 -0700 Subject: [PATCH] common: correct variable name Signed-off-by: Patrick Donnelly --- src/common/DecayCounter.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/DecayCounter.cc b/src/common/DecayCounter.cc index a0cf194216d..9dd491188e3 100644 --- a/src/common/DecayCounter.cc +++ b/src/common/DecayCounter.cc @@ -29,8 +29,8 @@ void DecayCounter::decode(bufferlist::const_iterator &p) { DECODE_START_LEGACY_COMPAT_LEN(5, 4, 4, p); if (struct_v < 2) { - double half_life = 0.0; - decode(half_life, p); + double k = 0.0; + decode(k, p); } if (struct_v < 3) { double k = 0.0; -- 2.39.5