Fix stop watch

This commit is contained in:
Markus Fleschutz 2021-04-21 16:43:08 +02:00
parent f156c432e0
commit b90f8cc67a
7 changed files with 7 additions and 7 deletions

View File

@ -78,7 +78,7 @@ try {
exit 0
}
[int]$Elapsed = $StopWatch.TotalSeconds
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ built Git repository 📂$RepoDir in $Elapsed sec."
exit 0
} catch {

View File

@ -20,7 +20,7 @@ try {
$Count++
}
[int]$Elapsed = $StopWatch.TotalSeconds
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
write-host -foregroundColor green "✔️ built $Count Git repositories at $ParentDir in $Elapsed sec."
exit 0
} catch {

View File

@ -23,7 +23,7 @@ try {
}
$Count = $Table.Length
[int]$Elapsed = $StopWatch.TotalSeconds
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
$Average = [math]::round($Count / $Elapsed, 1)
"✔️ $Average domains/s ($Count domains resolved in $Elapsed sec.)"
exit 0

View File

@ -31,7 +31,7 @@ try {
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
$Count++
}
[int]$Elapsed = $StopWatch.TotalSeconds
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ cloned $Count Git repositories at 📂$ParentDir in $Elapsed sec."
exit 0
} catch {

View File

@ -28,7 +28,7 @@ try {
$Count++
}
[int]$Elapsed = $StopWatch.TotalSeconds
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ updated $Count Git repositories at 📂$ParentDir in $Elapsed sec."
exit 0
} catch {

View File

@ -30,7 +30,7 @@ try {
$Count++
}
[int]$Elapsed = $StopWatch.TotalSeconds
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ updated $Count Git repositories at 📂$ParentDir in $Elapsed sec."
exit 0
} catch {

View File

@ -46,7 +46,7 @@ try {
$ftpStream.Dispose()
$fileStream.Dispose()
[int]$Elapsed = $StopWatch.TotalSeconds
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ uploaded $File to $URL in $Elapsed sec."
exit 0
} catch {