mldonkey-next: bandwidth charts


The original mldonkey webapp includes a useful chart for inspecting the bandwidth used by the mldonkey core. I tried to include the same chart in mldonkey-next, but unfortunately, it seems that the serial interface of mldonkey does not include that data.

By looking at the mldonkey source code, it seems that bandwidth charts are drawn server-side, and the data used to draw those charts are not available elsewhere.

I therefore had to apply a patch to the mldonkey core, to make that data available to the serial interface.

Once data is available, drawing the chart in mldonkey-next is simple. Here is the difference:

This be well visible both on desktop and mobile:

Charts are also updated in real time.

Installation

New versions of the webapp and native app should already include this feature. However, please note that you’ll need a build of the mldonkey-core taken from my fork, which is the only one including the needed patch. As usual, the suggested solution is to use the docker image.

Have fun! 😉

Leave a Reply

Your email address will not be published. Required fields are marked *