Skip to content

Commit b1f275f

Browse files
SQLTrace StopAfter bug fix
SQLTrace StopAfter bug fix and minor changes in output. Version bump.
1 parent 92868d9 commit b1f275f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

SQLTrace/SQLTrace.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ LogRaw "
9696
/_______ /\_____\ \_/|_______ \|____| |__| (____ / \___ >\___ >
9797
\/ \__> \/ \/ \/ \/
9898
99-
SQLTrace.ps1 version 1.0.0167.0
99+
SQLTrace.ps1 version 1.0.0171.0
100100
by the Microsoft SQL Server Networking Team
101101
"
102102

@@ -422,12 +422,12 @@ Function StartTraces
422422

423423
# StopAfter logic
424424

425-
if ($global:StopAfter -gt 0)
425+
if ($StopAfter -gt 0)
426426
{
427-
$global:StopAfterMinutes = $global:StopAfter
427+
$global:StopAfterMinutes = $StopAfter
428428
while ($global:StopAfterMinutes -gt 0)
429429
{
430-
LogInfo "The trace will stop after $($global:StopAfterMinutes) minutes."
430+
LogInfo "The trace will automatically stop in $($global:StopAfterMinutes) minutes."
431431
Start-Sleep -Seconds 60
432432
$global:StopAfterMinutes--
433433
}

0 commit comments

Comments
 (0)