Skip to content

Commit aeac20f

Browse files
authored
Update DownloadDemo.au3
1 parent 64e288d commit aeac20f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/v1.5.0_Examples/DownloadDemo.au3

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ Func __MyNetWebView2_WebViewEvents__OnDownloadStarting($sUri, $sDefaultPath)
9191
EndFunc ;==>__MyNetWebView2_WebViewEvents__OnDownloadStarting
9292

9393
; Listen for Manager OnDownloadStateChanged Events
94-
Func __MyNetWebView2_WebViewEvents__OnDownloadStateChanged($sState, $sUri, $iTotalBytes, $iReceivedBytes)
94+
Func __MyNetWebView2_WebViewEvents__OnDownloadStateChanged($sState, $sUri, $iTotal_Bytes, $iReceived_Bytes)
9595
ConsoleWrite("! __MyNetWebView2_WebViewEvents__OnDownloadStateChanged" & @CRLF)
9696

9797
Local $iPercent = 0
98-
If $iTotalBytes > 0 Then $iPercent = Round(($iReceivedBytes / $iTotalBytes) * 100)
98+
If $iTotal_Bytes > 0 Then $iPercent = Round(($iReceived_Bytes / $iTotal_Bytes) * 100)
9999

100100
; Convert to MB for easy-to-read log
101101
Local $iReceived_MegaBytes = Round($iReceived_Bytes / 1024 / 1024)

0 commit comments

Comments
 (0)