mirror of
https://github.com/RubyMetric/chsrc
synced 2025-07-01 00:52:43 +08:00
Fix output format
This commit is contained in:
parent
95fdce6b5c
commit
bd7f416c67
3
chsrc.c
3
chsrc.c
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user