Merge branch 'develop'
This commit is contained in:
commit
dd2fa44891
@ -117,7 +117,7 @@ UploadForm.prototype.updateSpeed = function (loaded) {
|
|||||||
if (this.lastTransferTime) {
|
if (this.lastTransferTime) {
|
||||||
this.xferSpeed.push((loaded - this.lastLoaded) / (time - 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 speed = this.xferSpeed.reduce((v, c) => v + c) / this.xferSpeed.length;
|
||||||
let unit = 0;
|
let unit = 0;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ily.li",
|
"name": "ily.li",
|
||||||
"version": "0.2.0",
|
"version": "0.2.1",
|
||||||
"description": "Self-hosted file pusher",
|
"description": "Self-hosted file pusher",
|
||||||
"repository": "git@gitlab.com:ArisuOngaku/ily.li.git",
|
"repository": "git@gitlab.com:ArisuOngaku/ily.li.git",
|
||||||
"author": "Alice Gaudon <alice@gaudon.pro>",
|
"author": "Alice Gaudon <alice@gaudon.pro>",
|
||||||
|
Loading…
Reference in New Issue
Block a user