2015-02-21 18:18:27 +01:00

5 lines
77 B
Bash

#!/bin/sh
collect () {
echo $(free | awk '/Swap/{print $3/$2 * 100.0;}')
}