cave-stat UX tuck

This commit is contained in:
Martinez 2017-11-20 23:04:57 +01:00
parent d14716de65
commit a42e2c5947

View file

@ -29,12 +29,12 @@ def cave_stat():
atom = [c for c in cmdline if "::" in c and c[0] == "="][0] atom = [c for c in cmdline if "::" in c and c[0] == "="][0]
lines = [ lines = [
"<G>*<.> %s <W>%s<.>" %(action, atom), "<B>**<.> %s <W>%s<.>" %(action, atom),
" - %s of %s (<g>%.01f %%<.>)" %(pos, total, 100 * int(pos) / int(total)) " - <G>%s of %s <g>done<.> (%.01f %% remaining)" %(pos, total, 100 - 100 * int(pos) / int(total))
] ]
if failed: if failed:
lines.append(" - <R>%d <r>failed<.>, %.01f %% failure rate" %(failed, 100 * failed / total)) lines.append(" - <R>%d <r>failed<.> (%.01f %% failure rate)" %(failed, 100 * failed / total))
yield over.text.render("\n".join(lines)) yield over.text.render("\n".join(lines))