Skip to content

Commit

Permalink
Update controller.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
christian1980nrw authored Nov 18, 2024
1 parent 5db91dd commit 845427c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1423,10 +1423,9 @@ if [ "$include_second_day" -eq 1 ]; then
log_message >&2 "D: number of prices: $price_count"

if [ "$price_count" -le 24 ]; then
log_message >&2 "I: time is 13:00. Extra checking and waiting for 48-hr prices every 5 minutes..."

current_hour=$(date +%H)
if [ "$current_hour" -eq 13 ]; then
log_message >&2 "I: time is > 13:00 and price data delayed. Extra checking and waiting for new prices every 5 minutes..."
while [ "$current_hour" -eq 13 ]; do
fetch_prices
price_table=""
Expand Down

0 comments on commit 845427c

Please sign in to comment.