cave-stat UX tuck
This commit is contained in:
parent
d14716de65
commit
a42e2c5947
1 changed files with 3 additions and 3 deletions
|
@ -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))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue