Current section
5 Versions
Jump to
Current section
5 Versions
Compare versions
5
files changed
+7
additions
-9
deletions
| @@ -1,6 +1,6 @@ | |
| 1 1 | # curltime |
| 2 2 | |
| 3 | - curltime is an Elixir package allows you to easily get website response times. |
| 3 | + curltime is an Elixir package that allows you to easily get website response times. |
| 4 4 | |
| 5 5 | ## Installation |
| @@ -1,14 +1,13 @@ | |
| 1 1 | {<<"app">>,<<"curltime">>}. |
| 2 2 | {<<"build_tools">>,[<<"mix">>]}. |
| 3 3 | {<<"description">>, |
| 4 | - <<"curltime is an Elixir package allows you to easily get website response times.">>}. |
| 4 | + <<"curltime is an Elixir package that allows you to easily get website response times.">>}. |
| 5 5 | {<<"elixir">>,<<"~> 1.3">>}. |
| 6 6 | {<<"files">>, |
| 7 | - [<<"lib/curl-format.txt">>,<<"lib/curltime.ex">>,<<"mix.exs">>, |
| 8 | - <<"README.md">>,<<"LICENSE">>]}. |
| 7 | + [<<"lib/curltime.ex">>,<<"mix.exs">>,<<"README.md">>,<<"LICENSE">>]}. |
| 9 8 | {<<"licenses">>,[<<"MIT">>]}. |
| 10 9 | {<<"links">>,[{<<"GitHub">>,<<"https://github.com/sergiotapia/curltime">>}]}. |
| 11 10 | {<<"maintainers">>,[<<"Sergio Tapia">>]}. |
| 12 11 | {<<"name">>,<<"curltime">>}. |
| 13 12 | {<<"requirements">>,[]}. |
| 14 | - {<<"version">>,<<"1.0.2">>}. |
| 13 | + {<<"version">>,<<"1.0.3">>}. |
| @@ -1 +0,0 @@ | |
| 1 | - %{time_namelookup}, %{time_connect}, %{time_appconnect}, %{time_pretransfer}, %{time_redirect}, %{time_starttransfer}, %{time_total} |
| @@ -28,7 +28,7 @@ defmodule Curltime do | |
| 28 28 | end |
| 29 29 | |
| 30 30 | def command(url, measurement) do |
| 31 | - args = ["-w", "@lib/curl-format.txt", "-o", "/dev/null", "-s", url] |
| 31 | + args = ["-w", "%{time_namelookup}, %{time_connect}, %{time_appconnect}, %{time_pretransfer}, %{time_redirect}, %{time_starttransfer}, %{time_total}", "-o", "/dev/null", "-s", url] |
| 32 32 | {result, _} = System.cmd("curl", args, []) |
| 33 33 | values = result |> String.split(",") |
| 34 34 | case measurement do |
| @@ -3,7 +3,7 @@ defmodule Curltime.Mixfile do | |
| 3 3 | |
| 4 4 | def project do |
| 5 5 | [app: :curltime, |
| 6 | - version: "1.0.2", |
| 6 | + version: "1.0.3", |
| 7 7 | elixir: "~> 1.3", |
| 8 8 | description: description(), |
| 9 9 | package: package(), |
| @@ -32,7 +32,7 @@ defmodule Curltime.Mixfile do | |
| 32 32 | |
| 33 33 | defp description do |
| 34 34 | """ |
| 35 | - curltime is an Elixir package allows you to easily get website response times. |
| 35 | + curltime is an Elixir package that allows you to easily get website response times. |
| 36 36 | """ |
| 37 37 | end |