Skip to content

Commit 5cb571b

Browse files
authored
Merge pull request #97203 from damendo/patch-1
Updating variable
2 parents b9176a7 + c6f949d commit 5cb571b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/network-watcher/network-watcher-read-nsg-flow-logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function Get-NSGFlowLogReadBlock {
138138
$downloadArray = New-Object -TypeName byte[] -ArgumentList $maxvalue
139139
140140
# Download the data into the ByteArray, starting with the current index, for the number of bytes in the current block. Index is increased by 3 when reading to remove preceding comma.
141-
$CloudBlockBlob.DownloadRangeToByteArray($downloadArray,0,$index, $($blockList[$i].Length-1)) | Out-Null
141+
$CloudBlockBlob.DownloadRangeToByteArray($downloadArray,0,$index, $($blockList[$i].Length)) | Out-Null
142142
143143
# Increment the index by adding the current block length to the previous index
144144
$index = $index + $blockList[$i].Length

0 commit comments

Comments
 (0)