diff --git a/assets/js/fm.js b/assets/js/fm.js index c867d91..f332ad5 100644 --- a/assets/js/fm.js +++ b/assets/js/fm.js @@ -117,7 +117,7 @@ UploadForm.prototype.updateSpeed = function (loaded) { if (this.lastTransferTime) { this.xferSpeed.push((loaded - this.lastLoaded) / (time - this.lastTransferTime)); - if (this.xferSpeed.length > 10) this.xferSpeed = this.xferSpeed.slice(1); + if (this.xferSpeed.length > 100) this.xferSpeed = this.xferSpeed.slice(1); let speed = this.xferSpeed.reduce((v, c) => v + c) / this.xferSpeed.length; let unit = 0; diff --git a/package.json b/package.json index 96c7813..9061d4f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ily.li", - "version": "0.2.0", + "version": "0.2.1", "description": "Self-hosted file pusher", "repository": "git@gitlab.com:ArisuOngaku/ily.li.git", "author": "Alice Gaudon ",