From 676586cdcac40d3d7fe04b38f0af5f0e2ab6bd50 Mon Sep 17 00:00:00 2001 From: xljiulang <366193849@qq.com> Date: Sun, 20 Jun 2021 13:40:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.Scanner/GithubContext.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FastGithub.Scanner/GithubContext.cs b/FastGithub.Scanner/GithubContext.cs index ea221e3..315003f 100644 --- a/FastGithub.Scanner/GithubContext.cs +++ b/FastGithub.Scanner/GithubContext.cs @@ -54,7 +54,8 @@ namespace FastGithub.Scanner public override string ToString() { - return $"{this.Domain} {{Address={this.Address}, AvailableRate={this.History.AvailableRate}, AvgElapsed={this.History.AvgElapsed}}}"; + var rate = Math.Round(this.History.AvailableRate * 100, 2); + return $"{this.Domain} {{Address={this.Address}, AvailableRate={rate}%, AvgElapsed={this.History.AvgElapsed.TotalSeconds}s}}"; } } }