summaryrefslogtreecommitdiff
path: root/src/trg-main-window.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <alan@eth0.org.uk>2012-05-27 13:01:34 +0100
committerGravatar Alan Fitton <alan@eth0.org.uk>2012-05-27 13:01:34 +0100
commit9ffae8f6d3eb316d524b9ca128a44d3cd4b84110 (patch)
tree97e43973f0f2ffade8534e3cd364206e8f269d67 /src/trg-main-window.c
parent754c44cc79613460b7354c0bfc30851c37266a3c (diff)
issue 198 - wrong speed units reported in tray (needs dividing by 1024)
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r--src/trg-main-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c
index cd56dea..15dc72c 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -1176,14 +1176,14 @@ update_whatever_statusicon(TrgMainWindow * win,
gchar *seedingLabel;
gchar buf[32];
- trg_strlspeed(buf, stats->downRateTotal);
+ trg_strlspeed(buf, stats->downRateTotal/1024);
downloadingLabel = g_strdup_printf(_("%d Downloading @ %s"),
stats->down, buf);
gtk_menu_item_set_label(GTK_MENU_ITEM(priv->iconDownloadingItem),
downloadingLabel);
g_free(downloadingLabel);
- trg_strlspeed(buf, stats->upRateTotal);
+ trg_strlspeed(buf, stats->upRateTotal/1024);
seedingLabel = g_strdup_printf(_("%d Seeding @ %s"),
stats->seeding, buf);
gtk_menu_item_set_label(GTK_MENU_ITEM(priv->iconSeedingItem),