1
0
I set user limit uptime to 30 minutes, as shown in the pic
I added a schedular to reset the counter everyday for the user 'admin' for 30 mins of wiFi everyday. Sometime it works for 30 mins and sometime it logout just 1 min after the login.
What could be the possible reason? How to set uptime limit correctly?
Uptime left = allowed - used. I theorize that if used was non-zero when you established the allowed limit, then left would be smaller. – harrymc – 2016-12-22T07:36:20.900
@harrymc; Sorry I didn't get you. – haccks – 2016-12-28T05:33:59.260
I meant that if you established the limit for 30 mins without resetting to zero the already-used amount, then if for example you were already connected for 29 mins, then you only had 1 min left. – harrymc – 2016-12-28T06:55:14.800
@harrymc; Sometime I get 30 min but some time only 15 min or less after resetting. – haccks – 2016-12-28T06:57:04.640
What exactly does resetting do? Does it only reset the limit or does it also reset the used time to zero? Was the connection already established at the time of reset when the result was less than 30 mins? – harrymc – 2016-12-28T08:42:28.700
@harrymc; I made a script named
resetcounter
. Added/ip hotspot user reset-counters
to the script. Scheduled with• Reschedule the counter every day: /system scheduler add name=dateresetcounter on-event=resetcounter interval=1d start-date=DATEISET
. – haccks – 2016-12-28T09:27:13.667