Fix output format

This commit is contained in:
Aoran Zeng 2023-09-09 21:02:02 +08:00
parent 95fdce6b5c
commit bd7f416c67

View File

@ -164,7 +164,7 @@ test_speed_url (const char* url)
char* speedstr = to_human_readable_speed(speed); char* speedstr = to_human_readable_speed(speed);
if (200!=http_code) { if (200!=http_code) {
char* httpcodestr = xy_str_to_yellow(xy_2strjoin("HTTP码 ", buf)); char* httpcodestr = xy_str_to_yellow(xy_2strjoin("HTTP码 ", buf));
puts (xy_strjoin(3, speedstr, " | ", httpcodestr)); puts (xy_strjoin(3, speedstr, " | ", httpcodestr));
} else { } else {
puts (speedstr); puts (speedstr);
@ -196,6 +196,7 @@ lets_test_speed_ (source_info* sources, size_t size, const char* target)
speed = 0; speed = 0;
} else { } else {
printf ("%s",xy_strjoin(3, "chsrc: 测速 ", src.mirror->site , " ... ")); printf ("%s",xy_strjoin(3, "chsrc: 测速 ", src.mirror->site , " ... "));
fflush(stdout);
speed = test_speed_url (url); speed = test_speed_url (url);
} }
speeds[i] = speed; speeds[i] = speed;