Rev 7521 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7521 | Rev 7525 | ||
---|---|---|---|
Line 76... | Line 76... | ||
76 | DL_Draw_Window(); |
76 | DL_Draw_Window(); |
77 | break; |
77 | break; |
Line 78... | Line 78... | ||
78 | 78 | ||
79 | default: |
79 | default: |
80 | if (!downloader.MonitorProgress()) break; |
80 | if (!downloader.MonitorProgress()) break; |
81 | pb.max = downloader.httpd.content_length; |
81 | pb.max = downloader.httpd.content_length / 100; |
- | 82 | EDI = downloader.httpd.content_received/100; |
|
82 | if (pb.value != downloader.httpd.content_received) |
83 | if (pb.value != EDI) |
83 | { |
84 | { |
84 | pb.value = downloader.httpd.content_received; |
85 | pb.value = EDI; |
85 | progressbar_draw stdcall(#pb); |
86 | progressbar_draw stdcall(#pb); |
86 | DrawDownloading(); |
87 | DrawDownloading(); |
87 | } |
88 | } |
88 | if (downloader.state == STATE_COMPLETED) |
89 | if (downloader.state == STATE_COMPLETED) |
Line 152... | Line 153... | ||
152 | ed.flags = 100000000000b; |
153 | ed.flags = 100000000000b; |
153 | pb.value = 0; |
154 | pb.value = 0; |
154 | DL_Draw_Window(); |
155 | DL_Draw_Window(); |
155 | } |
156 | } |
Line -... | Line 157... | ||
- | 157 | ||
156 | 158 | /* |
|
157 | struct TIME |
159 | struct TIME |
158 | { |
160 | { |
159 | dword old; |
161 | dword old; |
160 | dword cur; |
162 | dword cur; |
Line 178... | Line 180... | ||
178 | netdata_received = downloader.httpd.content_received; |
180 | netdata_received = downloader.httpd.content_received; |
179 | } |
181 | } |
180 | } |
182 | } |
181 | else time.old = time.cur; |
183 | else time.old = time.cur; |
182 | } |
184 | } |
- | 185 | */ |
|
Line 183... | Line 186... | ||
183 | 186 | ||
184 | void DrawDownloading() |
187 | void DrawDownloading() |
185 | { |
188 | { |
186 | char bytes_received[70]; |
189 | char bytes_received[70]; |