Changeset 1398


Ignore:
Timestamp:
12/22/2009 2:57:14 AM (4 years ago)
Author:
lowjoel
Message:

-Specify the progress when updating the upload status (fixes exception)
-Upload the report in blocks of 64k instead of 512k since the bottleneck is usually the internet connection, not the disk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/BlackBox/Eraser/BlackBoxUploadForm.cs

    r1397 r1398  
    8282                //Upload the report. 
    8383                UploadWorker.ReportProgress(baseProgress + progressPerReport / 2, 
    84                     S._("Uploading Report {0}: {1}%", reports[i].Name)); 
     84                    S._("Uploading Report {0}: {1}%", reports[i].Name, 0)); 
    8585                uploader.Upload(delegate(object from, ProgressChangedEventArgs progress) 
    8686                    { 
     
    194194                    { 
    195195                        int lastRead = 0; 
    196                         byte[] buffer = new byte[524288]; 
     196                        byte[] buffer = new byte[32768]; 
    197197                        while ((lastRead = formStream.Read(buffer, 0, buffer.Length)) != 0) 
    198198                        { 
Note: See TracChangeset for help on using the changeset viewer.