]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
common: correct variable name
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 2 Aug 2019 20:10:21 +0000 (13:10 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 13 Sep 2019 00:42:02 +0000 (17:42 -0700)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/common/DecayCounter.cc

index a0cf194216d807ec92bd4bf29875dbc1ce184c55..9dd491188e30501ec10c11fe9d860c20917f52b7 100644 (file)
@@ -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;