Skip to content

Commit

Permalink
Try new style
Browse files Browse the repository at this point in the history
  • Loading branch information
Sella-GH committed May 18, 2024
1 parent 4797262 commit 6b63c36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AzzyBot-Next/Utilities/EmbedBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ internal static DiscordEmbed BuildAzzyHardwareStatsEmbed(Uri avaUrl, string os,
fields.Add("CPU Usage", new(cpuUsageBuilder.ToString(), false));

string cpuLoad = $"1-Min-Load: **{cpuLoads.OneMin}**\n5-Min-Load: **{cpuLoads.FiveMin}**\n15-Min-Load: **{cpuLoads.FifteenMin}**";
fields.Add("CPU Load", new(cpuLoad, false));
fields.Add("CPU Load", new(cpuLoad, true));

string memoryUsage = $"Total: **{memory.Total}** GB\nUsed: **{memory.Used}** GB\nFree: **{Math.Round(memory.Total - memory.Used, 2)}** GB";
fields.Add("Memory Usage", new(memoryUsage, false));
fields.Add("Memory Usage", new(memoryUsage, true));

string diskUsage = $"Total: **{disk.TotalSize}** GB\nUsed: **{disk.TotalUsedSpace}** GB\nFree: **{disk.TotalFreeSpace}** GB";
fields.Add("Disk Usage", new(diskUsage, false));
fields.Add("Disk Usage", new(diskUsage, true));

StringBuilder networkUsageBuilder = new();
foreach (KeyValuePair<string, NetworkSpeedRecord> kvp in networkUsage)
Expand Down

0 comments on commit 6b63c36

Please sign in to comment.