Bläddra i källkod

StateService: Allow more time for loading initial data (#624)

Now it takes 10.8s instead of 8.5s for the loading progress between 60%
and 99% until the "slowConnect" flag is set.
Danilo Bargen 6 år sedan
förälder
incheckning
ebda116842
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/services/state.ts

+ 2 - 2
src/services/state.ts

@@ -206,7 +206,7 @@ export class StateService {
                 this.progress = 60;
                 this.progressInterval = this.$interval(() => {
                     if (this.progress < 80) {
-                        this.progress += 5;
+                        this.progress += 4;
                     } else if (this.progress < 90) {
                         this.progress += 2;
                     } else if (this.progress < 99) {
@@ -214,7 +214,7 @@ export class StateService {
                     } else {
                         this.slowConnect = true;
                     }
-                }, 500);
+                }, 600);
                 break;
             case 'done':
                 this.progress = 100;