extra: zshrc: Add units to curl-time snippet

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-06-15 15:36:42 +02:00
parent 33c4240587
commit c59cf08b44
Signed by: c8h4
GPG key ID: 6817E9C75C0785D7

View file

@ -37,13 +37,13 @@ deny-any-ptrace() {
curl-time() {
curl -w @- -o /dev/null -s "$@" <<'EOF'
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
time_namelookup: %{time_namelookup} s\n
time_connect: %{time_connect} s\n
time_appconnect: %{time_appconnect} s\n
time_pretransfer: %{time_pretransfer} s\n
time_redirect: %{time_redirect} s\n
time_starttransfer: %{time_starttransfer} s\n
----------\n
time_total: %{time_total}\n
time_total: %{time_total} s\n
EOF
}