more pure bash to speed up things

This commit is contained in:
olli 2023-11-11 17:03:58 +01:00
parent 3406fc5b8e
commit fbb54e25ab

View File

@ -54,10 +54,10 @@ function get_vars_from_csv {
elif g_num_is_lower ${f_last_4_prices_change} 0
then
f_price_trend="falling,${f_last_4_prices_change}"
#if g_num_is_lower ${f_3_last_line_array[2]} ${f_4_last_line_array[2]} && g_num_is_lower ${f_2_last_line_array[2]} ${f_3_last_line_array[2]} && g_num_is_lower ${f_price} ${f_2_last_line_array[2]}
#then
# f_price_trend="constantly falling,${f_last_4_prices_change}"
#fi
if g_num_is_lower ${f_3_last_line_array[2]} ${f_4_last_line_array[2]} && g_num_is_lower ${f_2_last_line_array[2]} ${f_3_last_line_array[2]} && g_num_is_lower ${f_price} ${f_2_last_line_array[2]}
then
f_price_trend="constantly falling,${f_last_4_prices_change}"
fi
else
f_price_trend="constant,${f_last_4_prices_change}"
fi