ServerBot/mem.sh

5 lines
94 B
Bash
Raw Normal View History

2019-05-10 20:01:51 +02:00
#!/bin/bash
function memUsage {
top -bn1 | sed -n 4p | awk '{ print int( $6 / $4 * 100) }'
}