diff --git a/Core/Helper/SystemHelper.cs b/Core/Helper/SystemHelper.cs index 80d9b83..60845b1 100644 --- a/Core/Helper/SystemHelper.cs +++ b/Core/Helper/SystemHelper.cs @@ -470,15 +470,15 @@ namespace Core.Helper result += hours.ToString() + "h"; } - if (minutes > 0) + if ((days == 0) && (minutes > 0)) { - if (hours > 0 || days > 0) result += " "; + if (hours > 0) result += " "; result += minutes.ToString() + "m"; } - if ((!shortOutput && seconds > 0) || (shortOutput && days == 0)) + if ((hours == 0) && (seconds > 0)) { - if (minutes > 0 || hours > 0 || days > 0) result += " "; + if (minutes > 0) result += " "; result += seconds.ToString() + "s"; } 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   + }