From e29eedea2c6c1b0567f350e279eddd763fe1ffd5 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Sun, 29 Sep 2024 12:04:33 +0800 Subject: [PATCH] Update field --- include/source.h | 4 ++-- src/chsrc-framework.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/source.h b/include/source.h index 2af14cc..02d59a5 100644 --- a/include/source.h +++ b/include/source.h @@ -16,10 +16,10 @@ typedef struct MirrorSite_t { const char *abbr; // 需要使用镜像站的英文名时,用这个代替,因为大部分镜像站没有提供正式的英文名 const char *name; // 镜像站中文名 const char *site; - const char *__bigfile_url; // 用于对该镜像站测速 + const char *bigfile_url; // 用于对该镜像站测速 } MirrorSite; -// #define Big_File_ubuntu "/indices/md5sums.gz" 这个是错的 +#define Big_File_ubuntu "/indices/md5sums.gz" 这个是错的 #define Big_File_ctan "/systems/texlive/Images/texlive.iso" // 4.8GB #define Big_File_debian "/ls-lR.gz" // 13.9MB #define Big_File_archlinux "/iso/latest/archlinux-x86_64.iso" // 800MB 左右 diff --git a/src/chsrc-framework.h b/src/chsrc-framework.h index 5b74983..309fc64 100644 --- a/src/chsrc-framework.h +++ b/src/chsrc-framework.h @@ -546,7 +546,7 @@ measure_speed_for_every_source (SourceInfo sources[], int size, double speed_rec for (int i=0; i__bigfile_url; + const char *url = src.mirror->bigfile_url; if (NULL==url) { if (xy_streql ("upstream", src.mirror->code))