[PATCH] Fix cpu detection in iostat applet for ARM
Gustavo Zacarias
gustavo at zacarias.com.ar
Thu Aug 12 13:00:47 UTC 2010
The new iostat applet tries to count CPUs via /proc/cpuinfo checking for
"Processor\t:".
Some architectures like ARM use "processor\t:".
We should really be using something like get_cpu_nr() from the mpstat
applet that parses /proc/stat instead since SPARC uses yet another
convention that won't work with this either.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: busybox-iostat-arch-fix.patch
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100812/612b34a9/attachment.ksh>
More information about the busybox
mailing list