Pre-compiled binaries available here
BitMeter OS is a free, open-source bandwidth monitor that works on Windows, Linux and Mac OSX. BitMeter OS keeps track of how much you use your internet/network connection, and allows you to view this information either via a web browser, or by using the command line tools.
The Web Interface displays various graphs and charts that show how your internet/network connection has been used over time.
The Monitor pane displays a graph that updates once each second, showing you what's happening with your connection right now:
The Query pane gives you detailed information about your bandwidth usage on any date/s that you specify, and lets you export the results to a spreadsheet
The History pane illustrates how your connection usage has changed over the last few hours, days, and months
BitMeter OS also lets you define Alerts to notify you when your internet usage exceeds some limit that you specify.
The Calculator utility lets you work out how long it will take to upload or download a file, or how much data you can transfer in a certain length of time
The Preferences pane allows you to customise many aspects of the interface to suit your needs, including the built-in RSS feed