aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-10-01 15:43:42 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-10-01 15:45:15 +0200
commit32e574750a7b06699073ac8e98aeebaf2fa8a82d (patch)
tree513080abb940eff3b71cde956a4e8a79d9d6f423 /server/controllers/api
parent5abeec313f897bbb1f1f39c3849675ec9a77d506 (diff)
downloadPeerTube-32e574750a7b06699073ac8e98aeebaf2fa8a82d.tar.gz
PeerTube-32e574750a7b06699073ac8e98aeebaf2fa8a82d.tar.zst
PeerTube-32e574750a7b06699073ac8e98aeebaf2fa8a82d.zip
Add "max requests number" information for requests iterations
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/v1/requests.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/controllers/api/v1/requests.js b/server/controllers/api/v1/requests.js
index 9610e5cd6..97616424d 100644
--- a/server/controllers/api/v1/requests.js
+++ b/server/controllers/api/v1/requests.js
@@ -30,6 +30,7 @@ function getStatsRequests (req, res, next) {
30 30
31 return res.json({ 31 return res.json({
32 requests: requests, 32 requests: requests,
33 maxRequestsInParallel: constants.REQUESTS_IN_PARALLEL,
33 remainingMilliSeconds: Request.remainingMilliSeconds(), 34 remainingMilliSeconds: Request.remainingMilliSeconds(),
34 milliSecondsInterval: constants.REQUESTS_INTERVAL 35 milliSecondsInterval: constants.REQUESTS_INTERVAL
35 }) 36 })