[gnome-control-center] network: nm_device_wifi_get_bitrate() returns values in kb/s, not Mb/s
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: nm_device_wifi_get_bitrate() returns values in kb/s, not Mb/s
- Date: Thu, 10 Mar 2011 14:55:06 +0000 (UTC)
commit a2f3a4312be836de0ef99d56674227e982ac7ebb
Author: Richard Hughes <richard hughsie com>
Date: Thu Mar 10 14:50:11 2011 +0000
network: nm_device_wifi_get_bitrate() returns values in kb/s, not Mb/s
panels/network/cc-network-panel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 64e6cdb..4a31c1c 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -836,7 +836,7 @@ nm_device_refresh_item_ui (CcNetworkPanel *panel, NMDevice *device)
/* speed */
str_tmp = g_strdup_printf ("%d Mb/s",
- nm_device_wifi_get_bitrate (NM_DEVICE_WIFI (device)));
+ nm_device_wifi_get_bitrate (NM_DEVICE_WIFI (device)) / 1000);
panel_set_widget_data (panel,
sub_pane,
"speed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]