forked from mirror/fake-firehose
Allow for variable stream delay to debug
This commit is contained in:
parent
64c2abf173
commit
29eb750165
2 changed files with 6 additions and 3 deletions
|
@ -18,4 +18,7 @@ archive=false
|
|||
## Put whatever amount of time here you want the container to restart after
|
||||
## This will kill any hanging curl processes that may be taking up uncessary
|
||||
## resources
|
||||
restartTimeout=1h
|
||||
restartTimeout=1h
|
||||
|
||||
## How long to delay starting a stream. Leave it here unless you are debugging
|
||||
streamDelay="0.1s"
|
|
@ -44,7 +44,7 @@ do
|
|||
echo "[INFO] Opening federated line $line"
|
||||
|
||||
#Check for hashtags
|
||||
if [[ "$line" == *" #"* ]]; then
|
||||
if [[ "$line" == *" "* ]]; then
|
||||
|
||||
echo "[INFO] $line has hashtags!"
|
||||
|
||||
|
@ -82,7 +82,7 @@ cat /config/hashtag-urls.txt >> /config/urls.txt
|
|||
cat /config/urls.txt | while read -r url
|
||||
do
|
||||
echo "[INFO] Opening $url to stream"
|
||||
sleep 0.1s
|
||||
sleep $streamDelay
|
||||
./stream-url.sh $url &
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in a new issue