questd: increase client interrogation timer to 10 seconds

This commit is contained in:
Sukru Senli 2015-10-05 17:29:46 +02:00
parent e0e2b2ff81
commit 83e5e16c8f

View file

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