Commit a0ffea15 authored by Mathieu Giraud's avatar Mathieu Giraud

core/germline.cpp: displays the .id instead of the address

The address is not very meaningful, we just want here to know wheter the germlines
use a same index. The stdout is now more reproducible.
parent 66280729
......@@ -175,9 +175,10 @@ ostream &operator<<(ostream &out, const Germline &germline)
{
out << setw(4) << left << germline.code << right << " '" << germline.shortcut << "' "
<< setw(3) << germline.delta_min
<< " " << germline.index ;
<< " ";
if (germline.index) {
out << " 0x" << hex << setw(2) << setfill('0') << germline.index->id << dec << setfill(' ') << " " ;
out << fixed << setprecision(3) << setw(8) << 100 * germline.index->getIndexLoad() << "%";
out << " s" << germline.index->getS() << " k" << germline.index->getK() << " " << germline.index->getSeed() ; // TODO: there should be a << for index
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment