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:
Thibaut VARÈNE
2023-05-24 14:42:13 +02:00
committed by John Crispin
parent 0abc0c17ff
commit 39510a6728

View File

@@ -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();