Code: Select all
:local gigabyte
:local name
:foreach name in=[/ip hotspot user find ]
do={:set gigabyte[$gigabyte+ /ip hotspot user get $name bytes-out] }
:put $gigabyte
:local gigabyte
:local name
:foreach name in=[/ip hotspot user find ]
do={:set gigabyte[$gigabyte+ /ip hotspot user get $name bytes-out] }
:put $gigabyte
global gigabyte :foreach name in=[/ip hotspot user find ] do={ global byte [/ip hotspot user get $name bytes-out] :set gigabyte [($gigabyte + $byte)] :put $gigabyte
/ip hotspot user {
:local gigabyte 0
:foreach i in=[find] do={
:set gigabyte ($gigabyte + [get $i bytes-out])
}
:put $gigabyte
}
:global gigabyte 0 ; :global byte 0 ; :foreach name in=[/ip hotspot user find ] do={:set byte [/ip hotspot user get $name bytes-out];:set gigabyte [($gigabyte + $byte)] }; :put $gigabyteThank you for quick respond and attention.