From 4495a6920595986528cf1e43bb37368eb1844d49 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Mon, 15 Jun 2020 12:22:33 +0200 Subject: [PATCH 1/2] fm.js: increase xferSpeed dataset size --- assets/js/fm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; From e6dde059a9cadf8f03fdbfaaa3d715101f61608e Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Mon, 15 Jun 2020 12:22:52 +0200 Subject: [PATCH 2/2] Version 0.2.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ",