
Programmer
Freelancer
Code Demigod
Resume
Contact me
The ISPs in Lebanon suck and put a 5GB limitation on our traffic. So for bandwidth monitoring, i use the bandwidthd application on my machine. And while i like that application, i didn't like the graphs that it drew and its statistics.
You cannot change the default graphs except by enabling the database module and run a postgresql database and then you can do any application that reads the data from the database and do whatever calculation you want. This gives excellent flexibility especially for ISPs which is what the the application was designed for.
i didn't want to run a database just for that, and so i decided to use Bandwidthd raw data. It stores its raw data in CDF files which are simple comma separated values files. So i wrote this python app that reads the log files and calculates how much traffic did you consume in any number of days.
Typically, you can run it as "cdfreader log.1.0.cdf 15". The "15" being the number of days since i last recharged my account and this will show me how much traffic did each ip consume.
You can get the application from here.