int limit=0, accounted=0;
if(total) {
for(rcounts_t::const_iterator i=rcounts.begin(); i != rcounts.end() && limit < 20; ++i, ++limit) {
- ret<< fmt % (-100.0*i->first/total) % (i->second.first.toString()+"|"+DNSRecordContent::NumberToType(i->second.second));
+ ret<< fmt % (-100.0*i->first/total) % (i->second.first.toLogString()+"|"+DNSRecordContent::NumberToType(i->second.second));
accounted+= -i->first;
}
ret<< '\n' << fmt % (100.0*(total-accounted)/total) % "rest";
for(const rcounts_t::value_type& q : rcounts) {
totIncluded-=q.first;
entries.push_back(Json::array {
- -q.first, q.second.first.toString(), DNSRecordContent::NumberToType(q.second.second)
+ -q.first, q.second.first.toLogString(), DNSRecordContent::NumberToType(q.second.second)
});
if(tot++>=100)
break;