From 24a549341ee86c8d5e59f38875955b8e67b70970 Mon Sep 17 00:00:00 2001 From: spiral Date: Tue, 9 Nov 2021 01:51:02 -0500 Subject: [PATCH] feat: don't call GetCurrentProcess twice --- PluralKit.Bot/Commands/Misc.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Commands/Misc.cs b/PluralKit.Bot/Commands/Misc.cs index 1a72f286..004ed2cc 100644 --- a/PluralKit.Bot/Commands/Misc.cs +++ b/PluralKit.Bot/Commands/Misc.cs @@ -114,7 +114,7 @@ namespace PluralKit.Bot + $" {counts.GroupCount:N0} groups," + $" {counts.SwitchCount:N0} switches," + $" {counts.MessageCount:N0} messages")) - .Timestamp(Process.GetCurrentProcess().StartTime.ToString("O")) + .Timestamp(process.StartTime.ToString("O")) .Footer(new($"PluralKit {BuildInfoService.Version} • https://github.com/xSke/PluralKit • Last restarted: ")); ; await ctx.Rest.EditMessage(msg.ChannelId, msg.Id, new MessageEditRequest { Content = "", Embed = embed.Build() });