From cb077a2c4a0fc315c53f84157a0bc6d36dbd916c Mon Sep 17 00:00:00 2001 From: JustArchi Date: Tue, 27 Dec 2016 16:00:21 +0100 Subject: [PATCH] Add minutes to human-readable TimeSpan, #387 --- ArchiSteamFarm/Utilities.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ArchiSteamFarm/Utilities.cs b/ArchiSteamFarm/Utilities.cs index 9eabb985f..7f2a93009 100644 --- a/ArchiSteamFarm/Utilities.cs +++ b/ArchiSteamFarm/Utilities.cs @@ -99,6 +99,15 @@ namespace ArchiSteamFarm { result.Append(','); } + if (timeSpan.Minutes > 0) { + result.Append(" " + timeSpan.Minutes + " minute"); + if (timeSpan.Minutes > 1) { + result.Append('s'); + } + + result.Append(','); + } + if (timeSpan.Seconds > 0) { result.Append(" " + timeSpan.Hours + " second"); if (timeSpan.Seconds > 1) {