I wish to change the graph x axis so that the values are in kilo BYTES per second instead of Kilo bits per second. The config file does not seem to have any option for that.
How you go about doing that depends on how you are storing the data and generating the graphs. If you have bandwidthd generating the graphs as it watches traffic, I believe you will need to change the graphing section in bandwidthd.c, dividing the numbers by 8 and changing the scale on the left is all you should need to do. Then recompile. If you have a database backend and are using the php scripts inside of phphtdocs through apache2 or some similar web server, then you should edit phphtdocs/graph.php; again, just divide the numbers by 8, but no need to recompile.
Oops! I told you the graphing section was in bandwidthd.c, but it isn't. It's in graph.c.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.