From 73e7daffd7687ff796bb260c0e18ce574df0a39e Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 23 Apr 2023 15:27:06 +0200 Subject: [PATCH] Formatting of finding best variables --- Server/Server.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Server/Server.cs b/Server/Server.cs index 88ba172..d612e74 100644 --- a/Server/Server.cs +++ b/Server/Server.cs @@ -87,7 +87,9 @@ public class Server if (calcTime.Key.calcTime > result.calcTime) calcTime = new KeyValuePair(result, filePath); } - Console.WriteLine($"Shortest: {shortest.Key.distance} {shortest.Value}\nFastest: {shortest.Key.weight} {fastest.Value}\nCalcTime: {calcTime.Key.calcTime} {calcTime.Value}"); + Console.WriteLine($"\nShortest:\t{shortest.Key.distance:0.0} {shortest.Key.weight:0.00} {shortest.Key.calcTime} {shortest.Value}\n" + + $"Fastest:\t{fastest.Key.distance:0.0} {fastest.Key.weight:0.00} {fastest.Key.calcTime} {fastest.Value}\n" + + $"CalcTime:\t{calcTime.Key.distance:0.0} {calcTime.Key.weight:0.00} {calcTime.Key.calcTime} {calcTime.Value}"); } private static RegionManager LoadRegions(string workingDir, Coordinates c1, Coordinates c2)