mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-08 19:54:13 +08:00
Refine speed measure output
This commit is contained in:
parent
194f721b8f
commit
31b4658477
@ -454,6 +454,11 @@ get_max_ele_idx_in_dbl_ary (double *array, int size)
|
|||||||
int
|
int
|
||||||
auto_select_ (SourceInfo *sources, size_t size, const char *target_name)
|
auto_select_ (SourceInfo *sources, size_t size, const char *target_name)
|
||||||
{
|
{
|
||||||
|
{
|
||||||
|
char *msg = CliOpt_InEnglish ? "Auto speed measuring..." : "自动测速中...";
|
||||||
|
xy_log_brkt (App_Name, bdblue (CliOpt_InEnglish ? "MEASURE" : "测速"), msg);
|
||||||
|
}
|
||||||
|
|
||||||
if (0==size || 1==size)
|
if (0==size || 1==size)
|
||||||
{
|
{
|
||||||
char *msg1 = CliOpt_InEnglish ? "Currently " : "当前 ";
|
char *msg1 = CliOpt_InEnglish ? "Currently " : "当前 ";
|
||||||
@ -511,8 +516,8 @@ auto_select_ (SourceInfo *sources, size_t size, const char *target_name)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char *msg = CliOpt_InEnglish ? "Measure speed> " : "测速 ";
|
const char *msg = CliOpt_InEnglish ? src.mirror->abbr : src.mirror->name;
|
||||||
measure_msgs[i] = xy_strjoin (3, msg, src.mirror->site , " ... ");
|
measure_msgs[i] = xy_strjoin (3, " - ", msg, " ... ");
|
||||||
printf ("%s", measure_msgs[i]);
|
printf ("%s", measure_msgs[i]);
|
||||||
say ("");
|
say ("");
|
||||||
// fflush (stdout);
|
// fflush (stdout);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user