Skip to content

Commit 4f0aee3

Browse files
committed
fix formatting..wait for handshake
1 parent 8c59494 commit 4f0aee3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

public/lib/uploadHttpConcurrentProgress.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@
133133
var bandwidthMbs = ((this.totalChunckBytes * 8) / 1000000) / ((performance.now() - this._beginTime) / 1000);
134134
this.resultsMb.push(bandwidthMbs);
135135
this.resultsIntervalMb.push(bandwidthMbs);
136-
this.clientCallbackProgress(bandwidthMbs);
136+
if(this.intervalCounter > 3){
137+
this.clientCallbackProgress(bandwidthMbs);
138+
}
137139
this.newRequests(1);
138140
};
139141

@@ -151,7 +153,9 @@
151153
var bandwidthMbs = ((this.totalChunckBytes * 8) / 1000000) / ((performance.now() - this._beginTime) / 1000);
152154
this.resultsMb.push(bandwidthMbs);
153155
this.resultsIntervalMb.push(bandwidthMbs);
154-
this.clientCallbackProgress(bandwidthMbs);
156+
if(this.intervalCounter > 3){
157+
this.clientCallbackProgress(bandwidthMbs);
158+
}
155159
};
156160

157161
/**

0 commit comments

Comments
 (0)