summaryrefslogtreecommitdiff
path: root/src/torrent.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-04 20:26:19 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-04 20:26:19 +0000
commita73d164e9fae9059be1b347270f1c7debbc00f3e (patch)
treea91c94a322ead98226d01fa6bbe0c4c79478c627 /src/torrent.c
parent336960c958d0b4ebdc0b54c25aef87fc7cb7b0a8 (diff)
reindent with gnu indent. add keyboard accelerators for view menu, fix toggle filter widget also connected to toggle graph cb. add Lithuanian translation thanks to Algimantas Margevičius via launchpad.
Diffstat (limited to 'src/torrent.c')
-rw-r--r--src/torrent.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/torrent.c b/src/torrent.c
index 45e77c8..0c83995 100644
--- a/src/torrent.c
+++ b/src/torrent.c
@@ -610,8 +610,7 @@ gint64 peerfrom_get_lpd(JsonObject * pf)
gdouble file_get_progress(gint64 length, gint64 completed)
{
if (length > 0) {
- return ((gdouble) completed /
- (gdouble) length) * 100.0;
+ return ((gdouble) completed / (gdouble) length) * 100.0;
} else {
return 0.0;
}