fix
This commit is contained in:
parent
6b9c31bf2b
commit
a2c90f47e3
@ -365,7 +365,7 @@ function convert_ohlcv_1h_to_1d {
|
|||||||
local f_input_file="$1"
|
local f_input_file="$1"
|
||||||
local f_output_file="$2"
|
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" ]
|
if ! [ -s "$f_input_file" ]
|
||||||
then
|
then
|
||||||
@ -416,7 +416,7 @@ function convert_ohlcv_1h_to_1d {
|
|||||||
echo $f_nextdate
|
echo $f_nextdate
|
||||||
f_nextdate=$(date -d "$f_nextdate +1day" "+%Y-%m-%d")
|
f_nextdate=$(date -d "$f_nextdate +1day" "+%Y-%m-%d")
|
||||||
i=$((i++))
|
i=$((i++))
|
||||||
if [ i -gt 10 ]
|
if [ $i -gt 10 ]
|
||||||
then
|
then
|
||||||
g_echo_warn "${FUNCNAME} $@: no nextdate found after >10 iterations"
|
g_echo_warn "${FUNCNAME} $@: no nextdate found after >10 iterations"
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user