]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mon/DataHealthService.cc
update sources to 12.2.8
[ceph.git] / ceph / src / mon / DataHealthService.cc
index 4a5b42ab388897075a0499762cc64e6aa606c8d1..28a4a9febdb40259af6f7f4fc163c456dea7fa7e 100644 (file)
@@ -91,8 +91,8 @@ void DataHealthService::get_health(
         health_detail.append("; ");
       stringstream ss;
       ss << "store is getting too big! "
-         << prettybyte_t(stats.store_stats.bytes_total)
-         << " >= " << prettybyte_t(g_conf->mon_data_size_warn);
+         << byte_u_t(stats.store_stats.bytes_total)
+         << " >= " << byte_u_t(g_conf->mon_data_size_warn);
       health_detail.append(ss.str());
     }
 
@@ -134,9 +134,9 @@ int DataHealthService::update_stats()
     return err;
   }
   dout(0) << __func__ << " avail " << ours.fs_stats.avail_percent << "%"
-          << " total " << prettybyte_t(ours.fs_stats.byte_total)
-          << ", used " << prettybyte_t(ours.fs_stats.byte_used)
-          << ", avail " << prettybyte_t(ours.fs_stats.byte_avail) << dendl;
+          << " total " << byte_u_t(ours.fs_stats.byte_total)
+          << ", used " << byte_u_t(ours.fs_stats.byte_used)
+          << ", avail " << byte_u_t(ours.fs_stats.byte_avail) << dendl;
   ours.last_update = ceph_clock_now();
 
   return update_store_stats(ours);