All pastes #462522 Raw Edit

Mine

public text v1 · immutable
#462522 ·published 2007-04-28 10:32 UTC
rendered paste body
#!/bin/sh

IDLE=$(vmstat 1 3 | gawk "/0/ {tot=tot+1; id=id+\$15} END {print 100 - int(id/tot)}")

if [ $IDLE -gt 50 ]
        then
        echo "1"
    else
        echo "0"
    exit 1
fi

exit 0