As per your request, the code that generates the bandwidth meter on
kernel.org is available at
ftp://ftp.kernel.org/pub/software/web/bwbar/bwbar-1.2.tar.gz
Yes, a long time ago I (and probably a couple of other people) harassed the web master of kernel.org (sorry, lost his name) into posting the code... hopefully I have been forgiven...