Skip to content

Commit

Permalink
fix: typo (TTLabs#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmnlv authored and bikeath1337 committed Apr 11, 2017
1 parent 4ae7242 commit 5e3da2d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions evaporate.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@
FileUpload.prototype.progressInterval = undefined;
FileUpload.prototype.startTime = undefined;
FileUpload.prototype.loaded = 0;
FileUpload.prototype.totalUpoaded = 0;
FileUpload.prototype.totalUploaded = 0;
FileUpload.prototype.updateLoaded = function (loadedNow) {
this.loaded += loadedNow;
this.fileTotalBytesUploaded += loadedNow;
Expand All @@ -488,9 +488,9 @@
return {};
}

this.totalUpoaded += this.loaded;
this.totalUploaded += this.loaded;
var delta = (new Date() - this.startTime) / 1000,
avgSpeed = this.totalUpoaded / delta,
avgSpeed = this.totalUploaded / delta,
stats = {
speed: avgSpeed,
readableSpeed: readableFileSize(avgSpeed),
Expand All @@ -513,7 +513,7 @@
clearInterval(this.progressInterval);
this.startTime = new Date();
this.loaded = 0;
this.totalUpoaded = 0;
this.totalUploaded = 0;
this.onProgress();
this.progressInterval = setInterval(this.onProgress.bind(this), this.con.progressIntervalMS);
};
Expand Down Expand Up @@ -932,7 +932,7 @@
};
FileUpload.prototype.uploadParts = function () {
this.loaded = 0;
this.totalUpoaded = 0;
this.totalUploaded = 0;
if (ACTIVE_STATUSES.indexOf(this.status) === -1) {
return Promise.reject('Part uploading stopped because the file was canceled');
}
Expand Down

0 comments on commit 5e3da2d

Please sign in to comment.