diff --git a/Core/Helper/SystemHelper.cs b/Core/Helper/SystemHelper.cs index 80d9b83..9687e39 100644 --- a/Core/Helper/SystemHelper.cs +++ b/Core/Helper/SystemHelper.cs @@ -472,15 +472,19 @@ namespace Core.Helper if (minutes > 0) { - if (hours > 0 || days > 0) result += " "; - result += minutes.ToString() + "m"; + if (days == 0 || (days > 0 && hours == 0)) + { + result += " "; + result += minutes.ToString() + "m"; + } } - if ((!shortOutput && seconds > 0) || (shortOutput && days == 0)) + if ((days == 0 && hours == 0) || (days > 0 && hours == 0 && minutes == 0) || (days == 0 && hours > 0 && minutes == 0)) { - if (minutes > 0 || hours > 0 || days > 0) result += " "; + result += " "; result += seconds.ToString() + "s"; } + return result; } diff --git a/Monitor/Pages/_get/DashboardTop.cshtml b/Monitor/Pages/_get/DashboardTop.cshtml index cd50fc4..80d5569 100644 --- a/Monitor/Pages/_get/DashboardTop.cshtml +++ b/Monitor/Pages/_get/DashboardTop.cshtml @@ -57,7 +57,7 @@ @if (mps == null || mps.ActiveSingleSettings == null || mps.ActiveSingleSettings.Count == 0) { @buyLogEntry.Market } else { - @buyLogEntry.Market + @buyLogEntry.Market   } @string.Format("{0}%", (buyLogEntry.PercChange * 100).ToString("#,#0.00")) @string.Format("{0}", (buyLogEntry.Volume24h).ToString()) @@ -166,14 +166,15 @@ - + @if (mps == null || mps.ActiveSingleSettings == null || mps.ActiveSingleSettings.Count == 0) { @dcaLogEntry.Market } else { - @dcaLogEntry.Market + @dcaLogEntry.Market   + }