+if {$tw != $tm} { error "inconsistent metric ($tw != $tm)" }
+set summ "# ("
+set sep ""
+if {![string equal $acc "distance"]} {
+ append summ [format "%stotal distance = %.1f LY" $sep $td]
+ set sep "; "
+}
+if {![string equal $weight "weight-hops"] && \
+ ![string equal $weight "weight-fuel"] && \
+ ![string equal $acc "weight"]} {
+ append summ [format "%stotal metric = %s" $sep $tm]
+}
+append summ ")"
+if {![string equal $summ "# ()"]} { puts $summ }