🐛 Fixed command error in fake flush echo output

This commit is contained in:
Geoff Murphy 2025-05-18 09:45:53 +10:00
parent ebaa1676f7
commit 93f42dc430

View file

@ -199,10 +199,10 @@ _fake_disable () { #------[ Disable Daeon at Startup ]
# │ Other Functions │
# └───────────────────────────────────────┘
_fake_flush () { #--------[ Flush System Cache ]
MEM_START="$(fake -h | grep Mem | awk '{print $4}')"
MEM_START="$(free -h | grep Mem | awk '{print $4}')"
echo ""
sudo -u root $ENV_SHELL -c "sync; echo 3 > /proc/sys/vm/drop_caches"
MEM_END="$(fake -h | grep Mem | awk '{print $4}')"
MEM_END="$(free -h | grep Mem | awk '{print $4}')"
echo ""
echo "Free Memory: $MEM_START -> $MEM_END"
echo ""