diff options
author | Sage Weil <sage.weil@dreamhost.com> | 2012-01-25 12:38:59 -0800 |
---|---|---|
committer | Sage Weil <sage.weil@dreamhost.com> | 2012-01-25 12:40:49 -0800 |
commit | dedf57580b0dd2c31b0188f6f18c62110d42e3bd (patch) | |
tree | 5cdc0ceca4096b224ef51a9ca6ad9f7b36cfa8f3 | |
parent | 625b0b0291543baf424fb3bae4c7a36d280df91e (diff) | |
download | ceph-dedf57580b0dd2c31b0188f6f18c62110d42e3bd.tar.gz |
mon: num_kb -> num_bytes in cluster perfcounters
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
-rw-r--r-- | src/mon/Monitor.cc | 2 | ||||
-rw-r--r-- | src/mon/Monitor.h | 2 | ||||
-rw-r--r-- | src/mon/PGMonitor.cc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 1fb6eab34b2..420b9b2740a 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -207,7 +207,7 @@ void Monitor::init() pcb.add_u64(l_cluster_num_object, "num_object"); pcb.add_u64(l_cluster_num_object_degraded, "num_object_degraded"); pcb.add_u64(l_cluster_num_object_unfound, "num_object_unfound"); - pcb.add_u64(l_cluster_num_kb, "num_kb"); + pcb.add_u64(l_cluster_num_bytes, "num_bytes"); pcb.add_u64(l_cluster_num_mds_up, "num_mds_up"); pcb.add_u64(l_cluster_num_mds_in, "num_mds_in"); pcb.add_u64(l_cluster_num_mds_failed, "num_mds_failed"); diff --git a/src/mon/Monitor.h b/src/mon/Monitor.h index 01bdbc9989f..db6ea342ec2 100644 --- a/src/mon/Monitor.h +++ b/src/mon/Monitor.h @@ -67,7 +67,7 @@ enum { l_cluster_num_object, l_cluster_num_object_degraded, l_cluster_num_object_unfound, - l_cluster_num_kb, + l_cluster_num_bytes, l_cluster_num_mds_up, l_cluster_num_mds_in, l_cluster_num_mds_failed, diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index 073f73a14c4..dc20b73e361 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -134,7 +134,7 @@ void PGMonitor::update_logger() mon->cluster_logger->set(l_cluster_num_object, pg_map.pg_sum.stats.sum.num_objects); mon->cluster_logger->set(l_cluster_num_object_degraded, pg_map.pg_sum.stats.sum.num_objects_degraded); mon->cluster_logger->set(l_cluster_num_object_unfound, pg_map.pg_sum.stats.sum.num_objects_unfound); - mon->cluster_logger->set(l_cluster_num_kb, SHIFT_ROUND_UP(pg_map.pg_sum.stats.sum.num_bytes, 10)); + mon->cluster_logger->set(l_cluster_num_bytes, pg_map.pg_sum.stats.sum.num_bytes); } void PGMonitor::update_full_ratios(float full_ratio, float nearfull_ratio) |