Hi all,
I recently upgraded from v5 to v6. I used to check total-bytes for the usage of each ip on scripting. But, now, “Total Statistics” has stopped working & I don’t know why! However, the “Statistics” section works correctly on the simple queues.
Then, I have to make the get the amount of download using “bytes”. It gives me the output in “10832/26435” format that can not be compared to a number.
:put [/queue simple get [/queue simple find target=(“192.168.10.10/32”)] bytes ]
How can I seperate the download part of the number?!
I would do something like this. If you want to test in the terminal, just enclose the entire script in brackets { }
:local bytes [/queue simple get [/queue simple find target=“192.168.10.10/32”] bytes]