Browse Source

chg: [vps] improve raw formatting of ``stats`` action

journalctl_limit
Valentin Lab 1 year ago
parent
commit
cccb7f8341
  1. 6
      bin/vps

6
bin/vps

@ -2142,8 +2142,12 @@ cmdline.spec::cmd:stats:run() {
:state-dir: :state-dir:
for resource in "${resources[@]}"; do for resource in "${resources[@]}"; do
[ "$opt_format" == "pretty" ] && echo "${WHITE}$resource${NORMAL}:"
if [ "$opt_format" == "pretty" ]; then
echo "${WHITE}$resource${NORMAL}:"
stats:"$resource" "$opt_format" 2>&1 | prefix " " stats:"$resource" "$opt_format" 2>&1 | prefix " "
else
stats:"$resource" "$opt_format" 2>&1 | prefix "$resource "
fi
set_errlvl "${PIPESTATUS[0]}" || return 1 set_errlvl "${PIPESTATUS[0]}" || return 1
done done
} }

Loading…
Cancel
Save