From 05ae0bff6ed587625ad753644179857fb6dc3710 Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 9 Apr 2023 16:49:22 +0200 Subject: [PATCH] Fixed invalid json-type --- API/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/API/Program.cs b/API/Program.cs index f74b88e..19ff529 100644 --- a/API/Program.cs +++ b/API/Program.cs @@ -57,8 +57,8 @@ app.Run(); internal class PathResult { [JsonInclude]public TimeSpan calcTime; - [JsonInclude] public double pathWeight = double.PositiveInfinity; - [JsonInclude] public double pathTravelDistance = double.PositiveInfinity; + [JsonInclude] public double pathWeight = double.MaxValue; + [JsonInclude] public double pathTravelDistance = double.MaxValue; [JsonInclude]public List pathNodes; public PathResult(TimeSpan calcTime, List pathNodes)