SOURCES: rtorrent-colors.patch - updated to 0.3.3
charles
charles at pld-linux.org
Sat Sep 3 01:24:32 CEST 2005
Author: charles Date: Fri Sep 2 23:24:32 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- updated to 0.3.3
---- Files affected:
SOURCES:
rtorrent-colors.patch (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SOURCES/rtorrent-colors.patch
diff -u SOURCES/rtorrent-colors.patch:1.6 SOURCES/rtorrent-colors.patch:1.7
--- SOURCES/rtorrent-colors.patch:1.6 Sun Aug 14 02:08:27 2005
+++ SOURCES/rtorrent-colors.patch Sat Sep 3 01:24:27 2005
@@ -9,8 +9,8 @@
}
void
---- rtorrent-0.3.1/src/display/utils.cc.orig 2005-08-12 19:09:58.000000000 +0200
-+++ rtorrent-0.3.1/src/display/utils.cc 2005-08-14 01:12:18.000000000 +0200
+--- rtorrent-0.3.3/src/display/utils.cc.orig 2005-08-28 00:40:48.000000000 +0200
++++ rtorrent-0.3.3/src/display/utils.cc 2005-09-03 01:03:51.000000000 +0200
@@ -55,7 +55,7 @@
}
@@ -20,17 +20,16 @@
char* last = buf + length;
buf += std::max(0, snprintf(buf, last - buf, "Torrent: "));
-@@ -70,10 +70,11 @@
+@@ -70,10 +70,10 @@
(double)d->get_download().get_bytes_done() / (double)(1 << 20),
(double)d->get_download().get_bytes_total() / (double)(1 << 20)));
- buf += std::max(0, snprintf(buf, last - buf, " Rate: %5.1f / %5.1f KB Uploaded: %.1f MB",
+ buf += std::max(0, snprintf(buf, last - buf, " Rate: %5.1f / %5.1f KB Uploaded: %6.1f MB Ratio: %5.2f",
- (double)d->get_download().get_write_rate().rate() / (1 << 10),
- (double)d->get_download().get_read_rate().rate() / (1 << 10),
-- (double)d->get_download().get_write_rate().total() / (1 << 20)));
-+ (double)d->get_download().get_write_rate().total() / (1 << 20),
-+ ratio));
+ (double)d->get_download().get_up_rate().rate() / (1 << 10),
+ (double)d->get_download().get_down_rate().rate() / (1 << 10),
+- (double)d->get_download().get_up_rate().total() / (1 << 20)));
++ (double)d->get_download().get_up_rate().total() / (1 << 20), ratio));
return buf;
}
@@ -76,7 +75,7 @@
+ core::Download* d = *range.first;
+
+ if (d->get_download().get_bytes_done())
-+ ratio = (double)d->get_download().get_write_rate().total() / (double)d->get_download().get_bytes_done();
++ ratio = (double)d->get_download().get_up_rate().total() / (double)d->get_download().get_bytes_done();
+
+ if (ratio >= 1.0)
+ col = 1;
@@ -150,7 +149,7 @@
- position = print_download_info(buffer, last - buffer, m_download);
+ if (d->get_download().get_bytes_done())
-+ ratio = (double)d->get_download().get_write_rate().total() / (double)d->get_download().get_bytes_done();
++ ratio = (double)d->get_download().get_up_rate().total() / (double)d->get_download().get_bytes_done();
+
+ position = print_download_info(buffer, last - buffer, m_download, ratio);
m_canvas->print(0, 0, "%s", buffer);
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/rtorrent-colors.patch?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list