packages: rtorrent/rtorrent-colors.patch - more 0.8.7 updates
baggins
baggins at pld-linux.org
Wed Oct 27 12:36:53 CEST 2010
Author: baggins Date: Wed Oct 27 10:36:53 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- more 0.8.7 updates
---- Files affected:
packages/rtorrent:
rtorrent-colors.patch (1.19 -> 1.20)
---- Diffs:
================================================================
Index: packages/rtorrent/rtorrent-colors.patch
diff -u packages/rtorrent/rtorrent-colors.patch:1.19 packages/rtorrent/rtorrent-colors.patch:1.20
--- packages/rtorrent/rtorrent-colors.patch:1.19 Wed Oct 27 12:30:14 2010
+++ packages/rtorrent/rtorrent-colors.patch Wed Oct 27 12:36:48 2010
@@ -73,7 +73,7 @@
+ core::Download* d = *range.first;
+
+ if (d->download()->bytes_done())
-+ ratio = (double)d->download()->up_rate()->total() / (double)d->download()->bytes_done();
++ ratio = (double)d->info()->up_rate()->total() / (double)d->download()->bytes_done();
+ if (ratio >= 1.0)
+ col = 1;
+ else if (ratio >= 0.5)
@@ -83,7 +83,7 @@
+
+ position = print_download_title(buffer, last, *range.first, ratio);
+ m_canvas->print(0, pos, "%c %s", range.first == m_view->focus() ? '*' : ' ', buffer);
-+ if (d->download()->is_open())
++ if (d->info()->is_open())
+ m_canvas->set_attr(0, pos, m_canvas->get_screen_width(), (d->is_done())?0:A_BOLD,
+ (d->is_done())?col:4);
+ pos++;
@@ -94,14 +94,14 @@
position = print_download_info(buffer, last, *range.first);
- m_canvas->print(0, pos++, "%c %s", range.first == m_view->focus() ? '*' : ' ', buffer);
+ m_canvas->print(0, pos, "%c %s", range.first == m_view->focus() ? '*' : ' ', buffer);
-+ if (!d->download()->is_active())
++ if (!d->info()->is_active())
+ m_canvas->set_attr(0, pos, m_canvas->get_screen_width(), A_BOLD, 8);
+ pos++;
position = print_download_status(buffer, last, *range.first);
- m_canvas->print(0, pos++, "%c %s", range.first == m_view->focus() ? '*' : ' ', buffer);
+ m_canvas->print(0, pos, "%c %s", range.first == m_view->focus() ? '*' : ' ', buffer);
-+ if (!d->download()->is_active())
++ if (!d->info()->is_active())
+ m_canvas->set_attr(0, pos, m_canvas->get_screen_width(), A_BOLD, 8);
+ pos++;
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/rtorrent/rtorrent-colors.patch?r1=1.19&r2=1.20&f=u
More information about the pld-cvs-commit
mailing list