{{ stats.remainingSeconds }}
</div>
+ <div>
+ <span class="label-description">Maximum number of requests per interval:</span>
+ {{ stats.maxRequestsInParallel }}
+ </div>
+
<div>
<span class="label-description">Remaining requests:</span>
{{ stats.requests.length }}
}
export class RequestStats {
+ maxRequestsInParallel: number;
milliSecondsInterval: number;
- remainingMilliSeconds: number;
+ remainingMilliSeconds: number;
requests: Request[];
constructor(hash: {
+ maxRequestsInParallel: number,
milliSecondsInterval: number,
remainingMilliSeconds: number,
requests: Request[];
}) {
+ this.maxRequestsInParallel = hash.maxRequestsInParallel;
this.milliSecondsInterval = hash.milliSecondsInterval;
this.remainingMilliSeconds = hash.remainingMilliSeconds;
this.requests = hash.requests;
return res.json({
requests: requests,
+ maxRequestsInParallel: constants.REQUESTS_IN_PARALLEL,
remainingMilliSeconds: Request.remainingMilliSeconds(),
milliSecondsInterval: constants.REQUESTS_INTERVAL
})