mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +00:00
uspot: accounting: relax loop timer
For accounting purposes, a 10s resolution seems adequate. Accounting session start is handled asynchronously in handler-uam.uc anyway. Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
This commit is contained in:
committed by
John Crispin
parent
0abc0c17ff
commit
39510a6728
@@ -238,10 +238,10 @@ function accounting(interface) {
|
||||
|
||||
uloop.init();
|
||||
|
||||
uloop.timer(1000, function() {
|
||||
uloop.timer(10000, function() {
|
||||
for (let interface in clients)
|
||||
accounting(interface);
|
||||
this.set(1000);
|
||||
this.set(10000);
|
||||
});
|
||||
|
||||
uloop.run();
|
||||
|
||||
Reference in New Issue
Block a user