This commit is contained in:
olli 2024-09-27 12:23:21 +02:00
parent 6b9c31bf2b
commit a2c90f47e3

View File

@ -365,7 +365,7 @@ function convert_ohlcv_1h_to_1d {
local f_input_file="$1"
local f_output_file="$2"
local f_latestdate f_nextdate f_mytimezone f_line f_date f_open f_high f_low f_close f_volume f_inday
local f_latestdate f_nextdate f_mytimezone f_line f_date f_open f_high f_low f_close f_volume f_inday i
if ! [ -s "$f_input_file" ]
then
@ -416,7 +416,7 @@ function convert_ohlcv_1h_to_1d {
echo $f_nextdate
f_nextdate=$(date -d "$f_nextdate +1day" "+%Y-%m-%d")
i=$((i++))
if [ i -gt 10 ]
if [ $i -gt 10 ]
then
g_echo_warn "${FUNCNAME} $@: no nextdate found after >10 iterations"
return 1