Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #16 from stratisproject/QualityScoreDisplay
Browse files Browse the repository at this point in the history
Improve quality score display in console when the score is less than 10
  • Loading branch information
dangershony authored Feb 28, 2017
2 parents 97f31bc + a2b03e6 commit b1ae0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Stratis.Bitcoin/Connection/ConnectionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public string GetStats()
builder.Append((node.RemoteSocketAddress + ":" + node.RemoteSocketPort).PadRight(Logs.ColumnLength * 2) + "R:" + ToKBSec(diff.ReadenBytesPerSecond) + "\tW:" + ToKBSec(diff.WrittenBytesPerSecond));
if(behavior != null)
{
builder.Append("\tQualityScore: " + behavior.QualityScore + "\tPendingBlocks: " + behavior.PendingDownloads.Count);
builder.Append("\tQualityScore: " + behavior.QualityScore + (behavior.QualityScore < 10 ? "\t" : "") + "\tPendingBlocks: " + behavior.PendingDownloads.Count);
}
builder.AppendLine();
}
Expand Down

0 comments on commit b1ae0fd

Please sign in to comment.