From 921296f2163d87f94f682e8aedae4090dc1e1826 Mon Sep 17 00:00:00 2001 From: olli Date: Sat, 11 Nov 2023 17:07:30 +0100 Subject: [PATCH] more pure bash to speed up things --- dabo/functions/get_vars_from_csv.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dabo/functions/get_vars_from_csv.sh b/dabo/functions/get_vars_from_csv.sh index 7d597f4..bc31eae 100644 --- a/dabo/functions/get_vars_from_csv.sh +++ b/dabo/functions/get_vars_from_csv.sh @@ -54,7 +54,7 @@ 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]} + if g_num_is_higher ${f_3_last_line_array[2]} ${f_4_last_line_array[2]} && g_num_is_higher ${f_2_last_line_array[2]} ${f_3_last_line_array[2]} && g_num_is_higher ${f_price} ${f_2_last_line_array[2]} then f_price_trend="constantly falling,${f_last_4_prices_change}" fi