more pure bash to speed up things

This commit is contained in:
olli 2023-11-11 16:52:34 +01:00
parent e4de3e781e
commit 9d1738f7e9

View File

@ -36,7 +36,7 @@ function get_vars_from_csv {
#f_last_4_prices=$(tail -n4 "${f_ASSET_HIST_FILE}" | cut -d, -f2)
#f_last_4_price=$(echo ${f_last_4_prices} | head -n1)
#f_last_4_prices_change=$(g_percentage-diff ${f_last_4_price} ${f_price})
f_last_4_prices_change=$(g_percentage-diff ${f_last_lines[0]} ${f_price})
f_last_4_prices_change=$(g_percentage-diff ${f_4_last_line_array[2]} ${f_price})
# if printf '%s\n' ${f_last_4_prices} | sort -n -C
# then