mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-10 02:28:57 +02:00
Improved the output
This commit is contained in:
parent
32fdc51a45
commit
a51c978c90
@ -6,8 +6,11 @@ RAMsize=$(LC_ALL=C free | awk '/Mem:/ {print $2}')
|
|||||||
RAMfree=$(LC_ALL=C free | awk '/Mem:/ {print $4}')
|
RAMfree=$(LC_ALL=C free | awk '/Mem:/ {print $4}')
|
||||||
SwapUsed=$(LC_ALL=C free | awk '/Swap:/ {print $3}')
|
SwapUsed=$(LC_ALL=C free | awk '/Swap:/ {print $3}')
|
||||||
|
|
||||||
echo "Swapping $SwapUsed bytes back to $RAMsize bytes RAM ($RAMfree bytes free) ..."
|
|
||||||
swapoff -a && swapon -a
|
|
||||||
|
|
||||||
echo "Done."
|
echo "Swapping $SwapUsed bytes back to $RAMsize bytes RAM ($RAMfree bytes free) ..."
|
||||||
|
start=`date +%s`
|
||||||
|
swapoff -a && swapon -a
|
||||||
|
end=`date +%s`
|
||||||
|
|
||||||
|
echo "✔️ Done - running for `expr $end - $start` seconds"
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user