mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
questd: increase client interrogation timer to 10 seconds
This commit is contained in:
parent
e0e2b2ff81
commit
83e5e16c8f
1 changed files with 7 additions and 2 deletions
|
|
@ -2111,10 +2111,10 @@ quest_ubus_init(const char *path)
|
|||
void *dump_router_info(void *arg)
|
||||
{
|
||||
int lpcnt = 0;
|
||||
bool popc = true;
|
||||
|
||||
jiffy_counts_t cur_jif = {0}, prev_jif = {0};
|
||||
|
||||
|
||||
init_db_hw_config();
|
||||
load_networks();
|
||||
load_wireless();
|
||||
|
|
@ -2125,7 +2125,12 @@ void *dump_router_info(void *arg)
|
|||
while (true) {
|
||||
dump_sysinfo(&router, &memory);
|
||||
dump_cpuinfo(&router, &prev_jif, &cur_jif);
|
||||
populate_clients();
|
||||
if (popc) {
|
||||
populate_clients();
|
||||
popc = false;
|
||||
} else
|
||||
popc = true;
|
||||
|
||||
get_jif_val(&prev_jif);
|
||||
usleep(sleep_time);
|
||||
recalc_sleep_time(false, 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue