diff options
Diffstat (limited to 'src/trg-torrent-model.c')
-rw-r--r-- | src/trg-torrent-model.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trg-torrent-model.c b/src/trg-torrent-model.c index 89ce37d..95406fe 100644 --- a/src/trg-torrent-model.c +++ b/src/trg-torrent-model.c @@ -206,7 +206,7 @@ update_torrent_iter(gint64 serial, TrgTorrentModel * model, TORRENT_COLUMN_DOWNLOADED, downloaded, TORRENT_COLUMN_RATIO, uploaded > - 0 ? (double) uploaded / (double) downloaded : 0, + 0 && downloaded > 0 ? (double) uploaded / (double) downloaded : 0, TORRENT_COLUMN_ID, id, TORRENT_COLUMN_JSON, t, TORRENT_COLUMN_UPDATESERIAL, serial, -1); |