cURL / Mailing Lists / curl-users / Single Mail

curl-users

Wrong total_count ?

From: Jan Birk <jan.g.birk_at_gmail.com>
Date: Sat, 9 Jul 2016 19:33:03 +0200

Hi,

I am not sure I understand the -w option completely :

Using

curl -w @curl-format.txt .....

and curl-format.txt is:
---------------
  cat curl-format.txt
     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
  -------------------- ---------------------\n
    time_total (sec): %{time_total}\n

The %time_total don’t add up? It gives:

     time_namelookup: 0,125
        time_connect: 0,127
     time_appconnect: 0,000
    time_pretransfer: 0,127
       time_redirect: 0,000
  time_starttransfer: 0,160
  -------------------- ---------------------
    time_total (sec): 0,160

Isn't time_total supposed to be the sum of all variables or are some of
the variable not included or included?

Best and thanks

/Jan

-- 
Med venlig hilsen
Jan Birk
Høvedstensvej 13
2650 Hvidovre
Tlf: 0045 41741615
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ:        https://curl.haxx.se/docs/faq.html
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-07-09