]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix typos, punctuation for mon disk space warning(s)
authorSage Weil <sage@inktank.com>
Mon, 16 Jun 2014 23:40:05 +0000 (16:40 -0700)
committerSage Weil <sage@inktank.com>
Tue, 1 Jul 2014 23:13:03 +0000 (16:13 -0700)
Backport: firefly
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 98883f6308ce72f69a71feab29ef00e13f319cdb)

Conflicts:

src/mon/DataHealthService.cc

src/mon/DataHealthService.cc

index 8dda929f02344d6a4c6e3c4a57ff06768c9f2135..bb6f8c0d46f64da19227a07b649c1fdfeae85e7a 100644 (file)
@@ -89,10 +89,10 @@ health_status_t DataHealthService::get_health(
     string health_detail;
     if (stats.latest_avail_percent <= g_conf->mon_data_avail_crit) {
       health_status = HEALTH_ERR;
-      health_detail = "shutdown iminent!";
+      health_detail = "shutdown imminent";
     } else if (stats.latest_avail_percent <= g_conf->mon_data_avail_warn) {
       health_status = HEALTH_WARN;
-      health_detail = "low disk space!";
+      health_detail = "low disk space";
     }
 
     if (stats.store_stats.bytes_total >= g_conf->mon_leveldb_size_warn) {
@@ -114,7 +114,7 @@ health_status_t DataHealthService::get_health(
       stringstream ss;
       ss << "mon." << mon_name << " addr " << it->first.addr
           << " has " << stats.latest_avail_percent
-          << "\% avail disk space -- " << health_detail;
+          << "% avail disk space -- " << health_detail;
       detail->push_back(make_pair(health_status, ss.str()));
     }