From aac5e4df35a94f3dcd06d2ab1e521f3271963b85 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 4 Jan 2017 02:47:23 +0100 Subject: [PATCH] Let's fix this too --- Backend/CommsTransmitter.cs | 5 ++--- Logic/Communications/OutboundComm.cs | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Backend/CommsTransmitter.cs b/Backend/CommsTransmitter.cs index a3a52d7c..946495af 100644 --- a/Backend/CommsTransmitter.cs +++ b/Backend/CommsTransmitter.cs @@ -49,6 +49,7 @@ namespace Swarmops.Backend People.FromSingle(Person.FromIdentity(comm.SenderPersonId))); } + comm.StartTransmission(); continue; // continue is not strictly necessary; could continue processing the same OutboundComm after resolution } @@ -65,8 +66,6 @@ namespace Swarmops.Backend BotLog.Write(2, "CommsTx", "--transmitting to " + recipients.Count.ToString("N0") + " recipients"); - comm.StartTransmission(); - foreach (OutboundCommRecipient recipient in recipients) { try @@ -111,7 +110,7 @@ namespace Swarmops.Backend TimeSpan totalTime = resolveTime + transmitTime; customStrings["TransmissionTime"] = FormatTimespan(transmitTime); - customStrings["ResolveTime"] = FormatTimespan(resolveTime); + customStrings["ResolvingTime"] = FormatTimespan(resolveTime); customStrings["TotalTime"] = FormatTimespan(totalTime); if (resolver is IHasGeography) { diff --git a/Logic/Communications/OutboundComm.cs b/Logic/Communications/OutboundComm.cs index 1bbe4246..cc64dabe 100644 --- a/Logic/Communications/OutboundComm.cs +++ b/Logic/Communications/OutboundComm.cs @@ -55,6 +55,7 @@ namespace Swarmops.Logic.Communications { SwarmDb.GetDatabaseForWriting().SetOutboundCommClosed (Identity); base.Open = false; + base.ClosedDateTime = DateTime.UtcNow; } else {