base-bearer: fix reporting tx/rx stats

The numbers were actually swapped!
This commit is contained in:
Aleksander Morgado
2017-10-19 11:43:50 +02:00
parent 25007741c8
commit 689dad9f6e

View File

@@ -294,8 +294,8 @@ reload_stats_ready (MMBaseBearer *self,
/* We only update stats if they were retrieved properly */
mm_bearer_stats_set_duration (self->priv->stats, (guint32) g_timer_elapsed (self->priv->duration_timer, NULL));
mm_bearer_stats_set_tx_bytes (self->priv->stats, rx_bytes);
mm_bearer_stats_set_rx_bytes (self->priv->stats, tx_bytes);
mm_bearer_stats_set_tx_bytes (self->priv->stats, tx_bytes);
mm_bearer_stats_set_rx_bytes (self->priv->stats, rx_bytes);
bearer_update_interface_stats (self);
}