summaryrefslogtreecommitdiff
path: root/src/trg-general-panel.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-02 14:14:41 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-02 14:14:41 +0000
commitcd3800287297bdcd9fb8c90ee01a2414be3b9312 (patch)
tree93c4718a5f8dab79f9fd3c0af22c7ab1fc892a26 /src/trg-general-panel.c
parent8259ceddd02f76a337bb7037cdf5b86872ad09c6 (diff)
change units to the IEC standard (and the Ubuntu units policy) for base2 (/1024) - KiB/GiB etc. this is instead of KB/s etc which Windows and many other apps use for base2. I've tried to fix up the translations as best as I can.
Diffstat (limited to 'src/trg-general-panel.c')
-rw-r--r--src/trg-general-panel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trg-general-panel.c b/src/trg-general-panel.c
index ac5e9ba..6d88c3f 100644
--- a/src/trg-general-panel.c
+++ b/src/trg-general-panel.c
@@ -126,10 +126,10 @@ void trg_general_panel_update(TrgGeneralPanel * panel, JsonObject * t,
trg_strlsize(buf, torrent_get_size(t));
gtk_label_set_text(GTK_LABEL(priv->gen_size_label), buf);
- trg_strlspeed(buf, torrent_get_rate_down(t) / KILOBYTE_FACTOR);
+ trg_strlspeed(buf, torrent_get_rate_down(t) / disk_K);
gtk_label_set_text(GTK_LABEL(priv->gen_down_rate_label), buf);
- trg_strlspeed(buf, torrent_get_rate_up(t) / KILOBYTE_FACTOR);
+ trg_strlspeed(buf, torrent_get_rate_up(t) / disk_K);
gtk_label_set_text(GTK_LABEL(priv->gen_up_rate_label), buf);
uploaded = torrent_get_uploaded(t);