Skip to content

Commit

Permalink
addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
preddy017c committed Nov 30, 2016
1 parent d4ae6fd commit 385614b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
10 changes: 9 additions & 1 deletion modules/uploadData.js
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,14 @@ var data = [
var bandwidthResults = [];

module.exports = {

/**
* Function gets the uploadsize with which the client has to perform the test
* @param bufferSize
* @param time
* @returns {*}
* @constructor
*/
GetUploadSize: function (bufferSize, time) {

if (bufferSize && time) {
Expand Down Expand Up @@ -1112,4 +1120,4 @@ module.exports = {
}

}
};
};
12 changes: 6 additions & 6 deletions public/lib/uploadHttpConcurrent.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@
if (!this._activeTests.length && this._running) {
this.calculateStats();
//check to whether increase file size
//if (this._progressCount > 10) {
// //file size can be increased to only certain value as browser is going to crash
// if (this.uploadSize < this._maxUploadSize) {
// this.uploadSize += this.uploadSize;
// }
//}
if (this._progressCount > 10) {
//file size can be increased to only certain value as browser is going to crash
if (this.uploadSize < this._maxUploadSize) {
this.uploadSize += this.uploadSize;
}
}
this.start();
}
}
Expand Down
2 changes: 1 addition & 1 deletion public/lib/uploadHttpConcurrentProgress.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,4 +274,4 @@
};

window.uploadHttpConcurrentProgress = uploadHttpConcurrentProgress;
})();
})();
2 changes: 1 addition & 1 deletion public/lib/uploadProbeTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@

window.uploadProbeTest = uploadProbeTest;

})();
})();

0 comments on commit 385614b

Please sign in to comment.