aboutsummaryrefslogtreecommitdiff
path: root/scripts/stat/ram.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/stat/ram.sh')
-rwxr-xr-xscripts/stat/ram.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/stat/ram.sh b/scripts/stat/ram.sh
new file mode 100755
index 0000000..2ef1be1
--- /dev/null
+++ b/scripts/stat/ram.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+free -m | awk 'NR==2{printf "%.2f%%", $3*100/$2 }'