From 04decabc46ce51421b3d98e2a520fb9bdecb1207 Mon Sep 17 00:00:00 2001 From: k Date: Fri, 5 Jul 2024 22:23:00 +0200 Subject: [PATCH] parser: fix ulimit only running in Mac OS --- CHANGELOG.md | 2 +- parser/run.sh | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b310454d3..c6298b719 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,9 @@ ### App - General + - Added height datasets and many optimizations to make them usable - Added a light theme - Charts - - Added height datasets and many optimizations to make them usable - Added split panes in order to have the vertical axis visible for all datasets - Added min and max values on the charts - Fixed legend hovering on mobile not resetting on touch end diff --git a/parser/run.sh b/parser/run.sh index c2ca57daa..5c920af4c 100755 --- a/parser/run.sh +++ b/parser/run.sh @@ -2,15 +2,17 @@ # https://stackoverflow.com/questions/31389483/find-and-delete-file-or-folder-older-than-x-days -# For Mac OS users -if [ "$(uname)" == "Darwin" ]; then +if command -v ulimit &> /dev/null; then echo "Increasing limit of opened files..." ulimit -n 1000000 # Can't be $(ulimit -Hn), bitcoind needs some too ! # Needed because the datasets tree is too big lol echo "Increasing stack size..." ulimit -s $(ulimit -Hs) +fi +# For Mac OS users +if [ "$(uname)" == "Darwin" ]; then if mdutil -s / | grep "enabled"; then echo "Disabling spotlight indexing..." sudo mdutil -a -i off &> /dev/null