From aa2e1b95084841f53d58cbabf5f6442d2e077e9c Mon Sep 17 00:00:00 2001 From: Derek S <44935661+Derek-R-S@users.noreply.github.com> Date: Wed, 7 Apr 2021 00:33:36 -0500 Subject: [PATCH] Fixed Errors --- .../LRM_LoadBalancer/Endpoint.cs | 2 +- .../LRM_LoadBalancer/ProgramExtra.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LoadBalancerProject-DONT-IMPORT-INTO-UNITY/LRM_LoadBalancer/Endpoint.cs b/LoadBalancerProject-DONT-IMPORT-INTO-UNITY/LRM_LoadBalancer/Endpoint.cs index 6b0ee94..9cafd47 100644 --- a/LoadBalancerProject-DONT-IMPORT-INTO-UNITY/LRM_LoadBalancer/Endpoint.cs +++ b/LoadBalancerProject-DONT-IMPORT-INTO-UNITY/LRM_LoadBalancer/Endpoint.cs @@ -177,7 +177,7 @@ namespace LightReflectiveMirror.LoadBalancing return; } - KeyValuePair lowest = new(new RelayAddress { Address = "Dummy" }, new RelayServerInfo { ConnectedClients = int.MaxValue }); + KeyValuePair lowest = new(new RelayAddress { address = "Dummy" }, new RelayServerInfo { connectedClients = int.MaxValue }); for (int i = 0; i < servers.Count; i++) { diff --git a/LoadBalancerProject-DONT-IMPORT-INTO-UNITY/LRM_LoadBalancer/ProgramExtra.cs b/LoadBalancerProject-DONT-IMPORT-INTO-UNITY/LRM_LoadBalancer/ProgramExtra.cs index 7cdcc98..fad6815 100644 --- a/LoadBalancerProject-DONT-IMPORT-INTO-UNITY/LRM_LoadBalancer/ProgramExtra.cs +++ b/LoadBalancerProject-DONT-IMPORT-INTO-UNITY/LRM_LoadBalancer/ProgramExtra.cs @@ -11,7 +11,7 @@ namespace LightReflectiveMirror.LoadBalancing long temp = 0; foreach (var item in availableRelayServers) - temp += item.Value.ConnectedClients; + temp += item.Value.connectedClients; return temp; } @@ -21,7 +21,7 @@ namespace LightReflectiveMirror.LoadBalancing int temp = 0; foreach (var item in availableRelayServers) - temp += item.Value.RoomCount; + temp += item.Value.roomCount; return temp; }