This commit is contained in:
2026-07-12 08:16:17 +03:30
commit 72be1234e1
2027 changed files with 221388 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
swap_used_kib=$(awk '/SwapTotal/ {total=$2} /SwapFree/ {free=$2} END {print total - free}' /proc/meminfo)
swap_used_mib=$((swap_used_kib / 1024))
echo "${swap_used_mib}"