summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alan F <ajf@eth0.org.uk>2014-04-24 20:18:46 +0100
committerGravatar Alan F <ajf@eth0.org.uk>2014-04-24 20:18:46 +0100
commit9f2d49a27efdfe941ed35753ceccf1c953667053 (patch)
treea237988c29ad051f7eac62f647b29adce754b5c3
parent86d07fadc08b41b2c0981f9c88419fe4d34beb34 (diff)
patch from rene.herman which fixes a type mismatch in some printf specifications in the transmission style cell renderer, causing 32bit to show 0 connected peers and unknown eta. thanks!
-rw-r--r--src/torrent-cell-renderer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/torrent-cell-renderer.c b/src/torrent-cell-renderer.c
index 5c6abd2..d8ea50b 100644
--- a/src/torrent-cell-renderer.c
+++ b/src/torrent-cell-renderer.c
@@ -322,16 +322,16 @@ static void getStatusString(GString * gstr, TorrentCellRenderer * r)
if (priv->fileCount > 0) {
g_string_append_printf(gstr,
ngettext
- ("Downloading from %1$li of %2$li connected peer",
- "Downloading from %1$li of %2$li connected peers",
+ ("Downloading from %1$lli of %2$lli connected peer",
+ "Downloading from %1$lli of %2$lli connected peers",
priv->webSeedsToUs + priv->peersToUs),
priv->webSeedsToUs + priv->peersToUs,
priv->webSeedsToUs + priv->connected);
} else {
g_string_append_printf(gstr,
ngettext
- ("Downloading metadata from %1$li peer (%2$s done)",
- "Downloading metadata from %1$li peers (%2$s done)",
+ ("Downloading metadata from %1$lli peer (%2$s done)",
+ "Downloading metadata from %1$lli peers (%2$s done)",
priv->connected + priv->webSeedsToUs),
priv->connected + priv->webSeedsToUs,
tr_strlpercent(buf,
@@ -341,8 +341,8 @@ static void getStatusString(GString * gstr, TorrentCellRenderer * r)
} else if (priv->flags & TORRENT_FLAG_SEEDING) {
g_string_append_printf(gstr,
ngettext
- ("Seeding to %1$li of %2$li connected peer",
- "Seeding to %1$li of %2$li connected peers",
+ ("Seeding to %1$lli of %2$lli connected peer",
+ "Seeding to %1$lli of %2$lli connected peers",
priv->connected), priv->peersFromUs,
priv->connected);
}