修改日志文本

This commit is contained in:
xljiulang 2021-06-19 14:33:15 +08:00
parent 1f7dbb64b1
commit 05ce4442ce

View File

@ -54,19 +54,7 @@ namespace FastGithub.Scanner
public override string ToString()
{
return new Github(
this.Domain,
this.Address,
this.History.AvailableRate,
this.History.AvgElapsed.TotalSeconds
).ToString();
}
private record Github(
string Domain,
IPAddress Address,
double AvailableRate,
double AvgElapsed);
return $"{this.Domain} {{Address={this.Address}, AvailableRate={this.History.AvailableRate}, AvgElapsed={this.History.AvgElapsed}}}";
}
}
}