diff --git a/Swarm/FileFly/Analysis/Folder-Analysis-HTML.ps1 b/Swarm/FileFly/Analysis/Folder-Analysis-HTML.ps1 index c2a8a6e..54d7130 100644 --- a/Swarm/FileFly/Analysis/Folder-Analysis-HTML.ps1 +++ b/Swarm/FileFly/Analysis/Folder-Analysis-HTML.ps1 @@ -85,7 +85,8 @@ Write-Host "Please wait..." -ForegroundColor Yellow function Format-Duration { param([TimeSpan]$Span) - if ($Span.TotalHours -ge 1) { return $Span.ToString('hh\:mm\:ss') } + if ($Span.TotalDays -ge 1) { return $Span.ToString('dd\.hh\:mm\:ss') } + elseif ($Span.TotalHours -ge 1) { return $Span.ToString('hh\:mm\:ss') } return $Span.ToString('mm\:ss') } @@ -664,4 +665,4 @@ $scriptStopwatch.Stop() Write-Host "Total processing time: $(Format-Duration $scriptStopwatch.Elapsed)" -ForegroundColor Cyan # Open HTML in default browser -try { Invoke-Item $OutputPath } catch { } \ No newline at end of file +try { Invoke-Item $OutputPath } catch { }