| 467 | } |
| 468 | |
| 469 | string FormatLossArray(const vector< pair<int32_t, int32_t> >& lra) |
| 470 | { |
| 471 | ostringstream os; |
| 472 | |
| 473 | os << "[ "; |
| 474 | for (vector< pair<int32_t, int32_t> >::const_iterator i = lra.begin(); i != lra.end(); ++i) |
| 475 | { |
| 476 | int len = CSeqNo::seqoff(i->first, i->second); |
| 477 | os << "%" << i->first; |
| 478 | if (len > 1) |
| 479 | os << "+" << len; |
| 480 | os << " "; |
| 481 | } |
| 482 | |
| 483 | os << "]"; |
| 484 | return os.str(); |
| 485 | } |
| 486 | |
| 487 | string FormatValue(int value, int factor, const char* unit) |
| 488 | { |