parser: fix ulimit only running in Mac OS

This commit is contained in:
k
2024-07-05 22:23:00 +02:00
parent 334ff52084
commit 04decabc46
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -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
+4 -2
View File
@@ -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