mirror of
https://github.com/Radarr/Radarr.git
synced 2025-04-23 22:17:15 -04:00
Fixed: Total runtime hours without decimal point
This commit is contained in:
parent
68c20713e5
commit
2f413c68d9
1 changed files with 4 additions and 2 deletions
|
@ -55,9 +55,11 @@ namespace Radarr.Api.V3.MovieFiles
|
|||
|
||||
private static string FormatRuntime(TimeSpan runTime)
|
||||
{
|
||||
if (runTime.TotalHours > 0)
|
||||
var hours = (int)runTime.TotalHours;
|
||||
|
||||
if (hours > 0)
|
||||
{
|
||||
return $"{runTime.TotalHours}:{runTime.Minutes:00}:{runTime.Seconds:00}";
|
||||
return $"{hours}:{runTime.Minutes:00}:{runTime.Seconds:00}";
|
||||
}
|
||||
|
||||
return $"{runTime.Minutes}:{runTime.Seconds:00}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue