View Single Post
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#56
Originally Posted by Estel View Post
[size=4]
I haven't had time (yet) to try automation, and using /proc/stats isn't so trivial to implement reliably no matter of conditions, so as for now, it depends on busybox-power
/Estel
Nothing against bb-power (at all).
Please see this:
PHP Code:
awk '{if ($3=="'"mmcblk1p2"'") print $10}' /proc/diskstats 
PHP Code:
swap=mmcblk1p2
awk 
'{if ($3=="'"$swap"'") print $10}' /proc/diskstats 
Output will be same as "iostat" (but not same as "iostat -m" ).

Last edited by peterleinchen; 2012-05-29 at 07:19.
 

The Following User Says Thank You to peterleinchen For This Useful Post: