Hi Daniel,
On Mon, Jun 28, 2010 at 02:52:14PM +0200, Daniel Wagner wrote:
> +int __connman_counter_add_service(struct connman_service *service)
> +{
> + struct connman_ipconfig *config;
> +
> + config = __connman_service_get_ipconfig(service);
> + g_hash_table_replace(stats_table, config, service);
> +
> + __connman_rtnl_update_interval_add(10);
We shouldn't be asking for rtnl updates every 10 seconds automatically. This
could be quite power consuming for e.g. handheld devices.
The only way we want to start requesting for rtnl updates is when an app
registers a counter with a specified timeout.
Once we have the threshold netfilter code in place, we will be able to get
rtnl updates for every N kBytes chunk or so. For now if you want your service
stats to be updated every N seconds, you really have to explicitely ask
connman for that, by registering a counter from your apps.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman