This makes it print out more nicely for reasonable weights.
Signed-off-by: Sage Weil <sage@inktank.com>
out << "up\t";
else
out << "down\t";
- out << (exists(cur) ? get_weightf(cur):0) << "\t";
+ out << std::setprecision(4) << (exists(cur) ? get_weightf(cur) : 0) << "\t";
}
}
float weight = q.front().weight;
q.pop_front();
- out << cur << "\t" << weight << "\t";
+ out << cur << "\t" << std::setprecision(4) << weight << "\t";
for (int k=0; k<depth; k++)
out << "\t";