Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
Fix mfree mem size
Browse files Browse the repository at this point in the history
  • Loading branch information
karmicdude committed Jun 25, 2016
1 parent 87ea9d4 commit 9e048e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/memory
@@ -1,3 +1,4 @@
#!/bin/bash
memory=$(free -h | grep "Mem" | awk '{print $3"/"$2h " ("int ($3*100/$2)"%)"}')
mfree=$(free --kilo | awk '/Mem/ {print int($3*100/$2)"%"}')
memory=$(free -h | grep "Mem" | awk -v mfree=$mfree '{print $3"/"$2" "mfree}')
echo "$memory "

0 comments on commit 9e048e3

Please sign in to comment.