fix empty vars
This commit is contained in:
parent
590fd9d0ec
commit
17e27891ec
@ -98,7 +98,7 @@ function analyze {
|
|||||||
f_market_performance=${f_market_performace_array[${f_time}]}
|
f_market_performance=${f_market_performace_array[${f_time}]}
|
||||||
[ -z "${f_market_performance}" ] && f_market_performance=${f_market_performance_before}
|
[ -z "${f_market_performance}" ] && f_market_performance=${f_market_performance_before}
|
||||||
f_market_performance_before=${f_market_performance}
|
f_market_performance_before=${f_market_performance}
|
||||||
g_num_valid_number "${f_market_performance}" || f_market_performance=0
|
g_num_valid_number "${f_market_performance}" 2>/dev/null || f_market_performance=0
|
||||||
#echo "MARKET_PERF=$f_market_performance"
|
#echo "MARKET_PERF=$f_market_performance"
|
||||||
|
|
||||||
#if [ -f "${g_tmp}/open-${tmpfile}" ]
|
#if [ -f "${g_tmp}/open-${tmpfile}" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user