mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 22:22:31 +00:00
* Renamed read/write stuff to down/up.
* Adding incomplete PeerConnectionSeed. * For every new peer connection it would traverse the local bitfield to check if it was zero'ed, instead of using a cached value. Forgot to change over when changing it from the BitFieldExt to the normal class. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@547 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -71,9 +71,9 @@ print_download_info(char* buf, unsigned int length, core::Download* d) {
|
||||
(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",
|
||||
(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_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)));
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user