Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2022-06-20 12:56:37 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2022-06-20 19:38:03 +0300
commit9ea395f5e0d19615aed3d7a98a043504952a760f (patch)
tree095d8be1fc16c5b84e3f67344308e7b9267126f7 /docs
parent9ddae8784ad2eae24f2dc3335c3944a93e4842ea (diff)
Print progress while starting the connections of a siege
Starting tens or hundreds of connections may take a while, so the progress is now printed to prevent the user from wondering if it is working or not. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/Talkbuchet.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/Talkbuchet.js b/docs/Talkbuchet.js
index 8681028af..25646ab9b 100644
--- a/docs/Talkbuchet.js
+++ b/docs/Talkbuchet.js
@@ -588,6 +588,10 @@ async function initPublishers() {
try {
await publisher.connect()
+
+ if ((i + 1) % 5 === 0 && (i + 1) < publishersCount) {
+ console.info('Publisher started (' + (i + 1) + '/' + publishersCount + ')')
+ }
} catch (exception) {
console.warn('Publisher ' + i + ' error: ' + exception)
}
@@ -650,6 +654,10 @@ async function initSubscribers() {
for (let i = 0; i < subscribers.length; i++) {
try {
await subscribers[i].connect()
+
+ if ((i + 1) % 5 === 0 && (i + 1) < subscribers.length) {
+ console.info('Subscriber started (' + (i + 1) + '/' + subscribers.length + ')')
+ }
} catch (exception) {
console.warn('Subscriber ' + i + ' error: ' + exception)
}