Skip to content
This repository was archived by the owner on May 30, 2019. It is now read-only.

Commit 0c15eb9

Browse files
committed
Setting $Config.MSSQLMetricSendIntervalSeconds to type [int]
1 parent 6049f35 commit 0c15eb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Functions/Internal.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Function Import-XMLConfig
8282

8383
# Below is for SQL Metrics
8484
$Config.MSSQLMetricPath = $xmlfile.Configuration.MSSQLMetics.MetricPath
85-
$Config.MSSQLMetricSendIntervalSeconds = $xmlfile.Configuration.MSSQLMetics.MetricSendIntervalSeconds
85+
[int]$Config.MSSQLMetricSendIntervalSeconds = $xmlfile.Configuration.MSSQLMetics.MetricSendIntervalSeconds
8686
$Config.MSSQLMetricTimeSpan = [timespan]::FromSeconds($Config.MSSQLMetricSendIntervalSeconds)
8787
[int]$Config.MSSQLConnectTimeout = $xmlfile.Configuration.MSSQLMetics.SQLConnectionTimeoutSeconds
8888
[int]$Config.MSSQLQueryTimeout = $xmlfile.Configuration.MSSQLMetics.SQLQueryTimeoutSeconds

0 commit comments

Comments
 (0)