Skip to content

Commit

Permalink
fix status order
Browse files Browse the repository at this point in the history
  • Loading branch information
th0mk committed Jan 26, 2025
1 parent 93f0aff commit f24c0ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/FMBot.Bot/TextCommands/StaticCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
Expand All @@ -22,7 +21,6 @@
using FMBot.Bot.Services.Guild;
using FMBot.Domain;
using FMBot.Domain.Models;
using Google.Apis.YouTube.v3.Data;
using Google.Protobuf.WellKnownTypes;
using Microsoft.Extensions.Options;
using Serilog;
Expand Down Expand Up @@ -242,7 +240,7 @@ public async Task StatusAsync()
{
var instanceOverview = await this._statusHandler.GetOverviewAsync(new Empty());

foreach (var instance in instanceOverview.Instances.OrderBy(o => o.InstanceName))
foreach (var instance in instanceOverview.Instances.OrderBy(o => o.InstanceName.Length).ThenBy(o => o.InstanceName))
{
if (instance.LastHeartbeat.ToDateTime() >= DateTime.UtcNow.AddSeconds(-30))
{
Expand Down

0 comments on commit f24c0ed

Please sign in to comment.