Hi
when I write this command
put [ip hotspot user get [find name=david] bytes-out
I get the number in bytes ,and I want to see it in GB
how can i do this?
I know I need to divide the number I get in 1073741824- how do I do this ?
Thanks ,
Hi
when I write this command
put [ip hotspot user get [find name=david] bytes-out
I get the number in bytes ,and I want to see it in GB
how can i do this?
I know I need to divide the number I get in 1073741824- how do I do this ?
Thanks ,
:put ( [ip hotspot user get [find name=david] bytes-out] / 1073741824 )
MT only deals with integers though, and truncates instead of rounding, so you will lose some accuracy.
I.e. if ‘david’ has moved 450541275240 bytes, you will get 419 (GiB), not 419.599260427 (GiB)
–Eric
Thanks ,
I think my problem was that I use "" and not “/” … thanks !
I only need the number to get an approximate value so it’s good
Thanks again ,