mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-17 09:06:58 +08:00
Cesu only 6sec
This commit is contained in:
parent
b7fb8326b6
commit
5190a2cbfd
2
chsrc.c
2
chsrc.c
@ -104,7 +104,7 @@ double
|
|||||||
test_speed (const char* url)
|
test_speed (const char* url)
|
||||||
{
|
{
|
||||||
// 我们用 —L,因为Ruby China源会跳转到其他地方
|
// 我们用 —L,因为Ruby China源会跳转到其他地方
|
||||||
char* curl_cmd = xy_strjoin(4, "curl -qsL -o ", xy_os_devnull, " -w \"%{http_code} %{speed_download}\" -m8 -A chsrc/" Chsrc_Version
|
char* curl_cmd = xy_strjoin(4, "curl -qsL -o ", xy_os_devnull, " -w \"%{http_code} %{speed_download}\" -m6 -A chsrc/" Chsrc_Version
|
||||||
" ", url);
|
" ", url);
|
||||||
|
|
||||||
// xy_info (xy_2strjoin("chsrc: 测速 ", url));
|
// xy_info (xy_2strjoin("chsrc: 测速 ", url));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user