Better formatting
This commit is contained in:
parent
531b739180
commit
f81bd6b1fc
@ -770,14 +770,13 @@ bool router1(Context *ctx, const Router1Cfg &cfg)
|
|||||||
int last_arcs_without_ripup = 0;
|
int last_arcs_without_ripup = 0;
|
||||||
|
|
||||||
log_info(" | (re-)routed arcs | delta | remaining| time spent |\n");
|
log_info(" | (re-)routed arcs | delta | remaining| time spent |\n");
|
||||||
log_info(" | | | | batch| total|\n");
|
log_info(" IterCnt | w/ripup wo/ripup | w/r wo/r | arcs| batch(sec)| total(sec)|\n");
|
||||||
log_info(" IterCnt | w/ripup wo/ripup | w/r wo/r | arcs| sec| sec|\n");
|
|
||||||
|
|
||||||
auto prev_time = rstart;
|
auto prev_time = rstart;
|
||||||
while (!router.arc_queue.empty()) {
|
while (!router.arc_queue.empty()) {
|
||||||
if (++iter_cnt % 1000 == 0) {
|
if (++iter_cnt % 1000 == 0) {
|
||||||
auto curr_time = std::chrono::high_resolution_clock::now();
|
auto curr_time = std::chrono::high_resolution_clock::now();
|
||||||
log_info("%10d | %8d %10d | %4d %5d | %9d| %9.02f| %9.02f|\n", iter_cnt, router.arcs_with_ripup,
|
log_info("%10d | %8d %10d | %4d %5d | %9d| %10.02f| %10.02f|\n", iter_cnt, router.arcs_with_ripup,
|
||||||
router.arcs_without_ripup, router.arcs_with_ripup - last_arcs_with_ripup,
|
router.arcs_without_ripup, router.arcs_with_ripup - last_arcs_with_ripup,
|
||||||
router.arcs_without_ripup - last_arcs_without_ripup, int(router.arc_queue.size()),
|
router.arcs_without_ripup - last_arcs_without_ripup, int(router.arc_queue.size()),
|
||||||
std::chrono::duration<float>(curr_time - prev_time).count(),
|
std::chrono::duration<float>(curr_time - prev_time).count(),
|
||||||
@ -807,7 +806,7 @@ bool router1(Context *ctx, const Router1Cfg &cfg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
auto rend = std::chrono::high_resolution_clock::now();
|
auto rend = std::chrono::high_resolution_clock::now();
|
||||||
log_info("%10d | %8d %10d | %4d %5d | %9d| %9.02f| %9.02f|\n", iter_cnt, router.arcs_with_ripup,
|
log_info("%10d | %8d %10d | %4d %5d | %9d| %10.02f| %10.02f|\n", iter_cnt, router.arcs_with_ripup,
|
||||||
router.arcs_without_ripup, router.arcs_with_ripup - last_arcs_with_ripup,
|
router.arcs_without_ripup, router.arcs_with_ripup - last_arcs_with_ripup,
|
||||||
router.arcs_without_ripup - last_arcs_without_ripup, int(router.arc_queue.size()),
|
router.arcs_without_ripup - last_arcs_without_ripup, int(router.arc_queue.size()),
|
||||||
std::chrono::duration<float>(rend - prev_time).count(),
|
std::chrono::duration<float>(rend - prev_time).count(),
|
||||||
|
Loading…
Reference in New Issue
Block a user