[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/usr/local/sysmon/ -> memuse.sh (source)

   1  #!/bin/bash
   2  let a=`cat /proc/meminfo |grep Active | gawk -F" " '{print $2}'`*100/`cat /proc/meminfo |grep MemTotal | gawk -F" " '{print $2}'`
   3  swaptotal=`cat /proc/meminfo |grep SwapTotal | gawk -F" " '{print $2}'`
   4  swapfree=`cat /proc/meminfo |grep SwapFree | gawk -F" " '{print $2}'`
   5  let s=($swaptotal-$swapfree)*100/$swaptotal
   6  echo $a
   7  echo $s


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1