I found cool realtime bandwidth monitor here: http://www.codejungle.org/site/Realtime+bandwidth+meter+with+php+and+jquery.html
What I tried to do is to modify the code so that it could show two series: download and upload speed.
I changed only the last few lines of code in data.php:
echo '[
{
label: "download",
data: ['.implode($_SESSION['rx'], ",").']
},
{
label: "upload",
data: ['.implode($_SESSION['tx'], ",").']
}
];';
But unfortunately it doesn't work, what's wrong with this piece of code?