On Mon, Sep 20, 2010 at 04:45:26PM +0200, Daniel Wagner wrote:
> +int  __connman_stats_update(struct connman_service *service,
> +                             connman_bool_t roaming,
> +                             struct connman_stats_data *data)
> +{
> +     struct stats_handle *handle;
> +     struct stats_file *file;
> +     struct stats_record *next;
> +     int err;
> +
> +     handle = g_hash_table_lookup(stats_hash, service);
> +     if (handle == NULL)
> +             return -EEXIST;
> +
> +     file = stats_file_get(handle, roaming);
> +
> +     if (file->len < file->max_len &&
> +                     file->last == get_begin(file)) {

should be

       file->last == get_end(file)

daniel
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to