summaryrefslogtreecommitdiffstats
path: root/src/mon/DataHealthService.cc
diff options
context:
space:
mode:
authorJohn Spray <john.spray@inktank.com>2014-05-08 12:04:46 +0200
committerJohn Spray <john.spray@inktank.com>2014-05-08 14:28:56 +0200
commitf0231ef364d531eb60351598c4a0f5fa6efad23c (patch)
tree93fe578f9fbf40b824fcdfb3a81f48bbe3f0349a /src/mon/DataHealthService.cc
parentmds: Remove redundant 'using namespace std' (diff)
downloadceph-f0231ef364d531eb60351598c4a0f5fa6efad23c.tar.xz
ceph-f0231ef364d531eb60351598c4a0f5fa6efad23c.zip
mon: Fix % escaping (\% should be %%)
Clang's -Wpedantic points this out. Signed-off-by: John Spray <john.spray@inktank.com>
Diffstat (limited to 'src/mon/DataHealthService.cc')
-rw-r--r--src/mon/DataHealthService.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mon/DataHealthService.cc b/src/mon/DataHealthService.cc
index 8dda929f023..bbe98e1485a 100644
--- a/src/mon/DataHealthService.cc
+++ b/src/mon/DataHealthService.cc
@@ -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()));
}
@@ -233,7 +233,7 @@ void DataHealthService::service_tick()
if (ours.latest_avail_percent != last_warned_percent)
mon->clog.warn()
<< "reached concerning levels of available space on local monitor storage"
- << " (" << ours.latest_avail_percent << "\% free)\n";
+ << " (" << ours.latest_avail_percent << "%% free)\n";
last_warned_percent = ours.latest_avail_percent;
} else {
last_warned_percent = 0;