Skip to content

Commit

Permalink
Merge pull request #88 from LeeMustache/66-task-new-uptime-format
Browse files Browse the repository at this point in the history
T #66 New uptime format
  • Loading branch information
HueByte committed Sep 16, 2022
2 parents e109351 + 0f566db commit 0449c77
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Huppy/Huppy.App/Commands/SlashCommands/DevCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,12 @@ public async Task GetStatus()
var avgExecutionTime = await _resourceService.GetAverageExecutionTimeAsync();

var upTime = _resourceService.GetUpTime();
var upTimeFormatted = string.Format(
@"{0}::{1}::{2}::{3}::{4}",
upTime.Days,
upTime.Hours,
upTime.Minutes,
upTime.Seconds,
upTime.Milliseconds);
var upTimeFormatted = upTime.ToString("d'd 'hh':'mm':'ss");

embed.AddField("CPU", $"`{cpuUsage}`", true);
embed.AddField("RAM", $"`{ramUsage}`", true);
embed.AddField("Shard Count", $"`{shardCount}`", true);
embed.AddField("Bot Uptime (DD:HH:MM:SS:MS)", $"`{upTimeFormatted}`", true);
embed.AddField("Bot Uptime", $"`{upTimeFormatted}`", true);
embed.AddField("Average command executon time", $"`{avgExecutionTime} ms`", true);
embed.AddField("Bot Version", $"`v...`", true);
embed.AddField("IsServerGC", $"`{GCSettings.IsServerGC}`", true);
Expand Down

0 comments on commit 0449c77

Please sign in to comment.