SOURCES: rtorrent-colors.patch - updated for 0.4.1

charles charles at pld-linux.org
Wed Dec 21 16:19:42 CET 2005


Author: charles                      Date: Wed Dec 21 15:19:42 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- updated for 0.4.1

---- Files affected:
SOURCES:
   rtorrent-colors.patch (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SOURCES/rtorrent-colors.patch
diff -u SOURCES/rtorrent-colors.patch:1.8 SOURCES/rtorrent-colors.patch:1.9
--- SOURCES/rtorrent-colors.patch:1.8	Tue Nov 22 03:38:22 2005
+++ SOURCES/rtorrent-colors.patch	Wed Dec 21 16:19:37 2005
@@ -9,9 +9,9 @@
  }
  
  void
---- rtorrent-0.4.0/src/display/utils.cc.orig	2005-11-15 18:42:39.000000000 +0100
-+++ rtorrent-0.4.0/src/display/utils.cc	2005-11-22 02:45:01.000000000 +0100
-@@ -90,7 +90,7 @@
+--- rtorrent-0.4.1/src/display/utils.cc.orig	2005-12-19 20:49:01.000000000 +0100
++++ rtorrent-0.4.1/src/display/utils.cc	2005-12-21 04:25:23.000000000 +0100
+@@ -102,7 +102,7 @@
  }
  
  char*
@@ -20,19 +20,19 @@
    char* last = buf + length;
  
    buf += std::max(0, snprintf(buf, last - buf, "Torrent: "));
-@@ -105,10 +105,10 @@
+@@ -117,10 +117,10 @@
  				(double)d->get_download().bytes_done() / (double)(1 << 20),
  				(double)d->get_download().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",
+-  buf += std::max(0, snprintf(buf, last - buf, " Rate: %5.1f / %5.1f KB Uploaded: %7.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().up_rate()->rate() / (1 << 10),
  			      (double)d->get_download().down_rate()->rate() / (1 << 10),
 -			      (double)d->get_download().up_rate()->total() / (1 << 20)));
 +			      (double)d->get_download().up_rate()->total() / (1 << 20), ratio));
  
-   return buf;
- }
+   //buf += std::max(0, snprintf(buf, length, " Left: "));
+   buf = print_download_time_left(buf, length, d);
 diff -U 3 -H -d -r -N -- rtorrent-0.3.0.orig/src/display/utils.h rtorrent-0.3.0/src/display/utils.h
 --- rtorrent-0.3.0.orig/src/display/utils.h	2005-07-13 13:59:51.000000000 +0200
 +++ rtorrent-0.3.0/src/display/utils.h	2005-07-29 18:09:37.000000000 +0200
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/rtorrent-colors.patch?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list