From 76fc12e3a72fab607ee1a6daa309772874410d43 Mon Sep 17 00:00:00 2001 From: HojouFotytu <36724681+HojouFotytu@users.noreply.github.com> Date: Wed, 3 Mar 2021 15:23:42 +0900 Subject: [PATCH] age tweaks --- Core/Helper/SystemHelper.cs | 8 ++++---- Monitor/Pages/_get/DashboardTop.cshtml | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) 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) {