Merge branch 'develop'

This commit is contained in:
Alice Gaudon 2020-06-15 12:23:00 +02:00
commit dd2fa44891
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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 <alice@gaudon.pro>",