Fix minor display issues

This commit is contained in:
ahjephson
2025-10-18 16:01:53 +01:00
parent 8796cc0f24
commit 7370d73c59
4 changed files with 11 additions and 12 deletions

View File

@@ -25,7 +25,7 @@ namespace Lantean.QBTMud.Helpers
const long InfiniteEtaSentinelSeconds = 8_640_000; // ~100 days, used by qBittorrent for "infinite" ETA.
var value = seconds.Value;
if (value >= long.MaxValue || value >= (long)TimeSpan.MaxValue.TotalSeconds || value == InfiniteEtaSentinelSeconds)
if (value >= long.MaxValue || value >= TimeSpan.MaxValue.TotalSeconds || value == InfiniteEtaSentinelSeconds)
{
return "∞";
}
@@ -419,4 +419,4 @@ namespace Lantean.QBTMud.Helpers
};
}
}
}
}

View File

@@ -207,7 +207,7 @@ namespace Lantean.QBTMud.Helpers
break;
case Status.Paused:
if (!state.Contains("paused") || !state.Contains("stopped"))
if (!state.Contains("paused") && !state.Contains("stopped"))
{
return false;
}
@@ -284,4 +284,4 @@ namespace Lantean.QBTMud.Helpers
};
}
}
}
}