mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-16 16:36:59 +08:00
Cesu only 6sec
This commit is contained in:
parent
b7fb8326b6
commit
5190a2cbfd
@ -41,7 +41,7 @@ set <target> <mirror> # 换源,指定使用某镜像站
|
|||||||
- [ ] `chsrc set rust` 或 `chsrc set cargo` 或 `chsrc crate`
|
- [ ] `chsrc set rust` 或 `chsrc set cargo` 或 `chsrc crate`
|
||||||
- [ ] `chsrc set java` 或 `chsrc set maven` 或 `chsrc set mvn` 或 `chsrc gradle`
|
- [ ] `chsrc set java` 或 `chsrc set maven` 或 `chsrc set mvn` 或 `chsrc gradle`
|
||||||
|
|
||||||
- [x] `chsrc set r` 或 `chsrc set cran` (同时会为 `bioconductor` 换源)
|
- [x] `chsrc set r` 或 `chsrc set cran` (同时会为 `bioconductor` 换源)
|
||||||
- [ ] `chsrc set julia`
|
- [ ] `chsrc set julia`
|
||||||
|
|
||||||
## 操作系统
|
## 操作系统
|
||||||
|
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