[PATCH] make top smaller

Denis Vlasenko vda at ilport.com.ua
Fri Apr 21 13:47:27 UTC 2006


# size busybox.org.t/busybox busybox.top.t/busybox
   text    data     bss     dec     hex filename
 763210   10724 1195072 1969006  1e0b6e busybox.org.t/busybox
 762380   10728 1195232 1968340  1e08d4 busybox.top.t/busybox

* CPU% = process[i].ticks/sum(process[i].ticks) * busy_cpu_ticks/total_cpu_ticks
* got rid of empty line under "Load average" line
  and used last line - +2 visible processes
* do not do float conversion of loadavg, just read it as string from /proc
* fix display on small screens
* dropped unused .stime, .utime fields
* a few variables were renamed
* style fixes

Please apply.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: top.patch
Type: text/x-diff
Size: 18889 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060421/f7b7fc26/attachment.bin 


More information about the busybox mailing list