-#include <boost/format.hpp>
+#include <fmt/format.h>
#include "include/health.h"
#include "include/types.h"
if (daemons.empty()) {
return;
}
- static const char* fmt = "%1% slow ops, oldest one blocked for %2% sec, %3%";
ostringstream ss;
if (daemons.size() > 1) {
if (daemons.size() > 10) {
} else {
ss << daemons.front() << " has slow ops";
}
- check.summary = boost::str(boost::format(fmt) % value.n1 % value.n2 % ss.str());
+ check.summary =
+ fmt::format("{} slow ops, oldest one blocked for {} sec, {}",
+ value.n1, value.n2, ss.str());
// No detail
}
vector<DaemonKey> daemons;
if (osds.empty()) {
return;
}
- static const char* fmt = "%1% PGs pending on creation";
- check.summary = boost::str(boost::format(fmt) % value.n);
+ check.summary = fmt::format("{} PGs pending on creation", value.n);
ostringstream ss;
if (osds.size() > 1) {
ss << "osds " << osds << " have pending PGs.";