Changeset 1145 for trunk/rtorrent/src/display/utils.cc
- Timestamp:
- 03/15/10 14:31:50 (2 years ago)
- Files:
-
- 1 modified
-
trunk/rtorrent/src/display/utils.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/rtorrent/src/display/utils.cc
r1144 r1145 128 128 char* 129 129 print_download_title(char* first, char* last, core::Download* d) { 130 return print_buffer(first, last, " %s", d-> download()->name().c_str());130 return print_buffer(first, last, " %s", d->info()->name().c_str()); 131 131 } 132 132 … … 148 148 149 149 first = print_buffer(first, last, " Rate: %5.1f / %5.1f KB Uploaded: %7.1f MB", 150 (double)d-> download()->up_rate()->rate() / (1 << 10),151 (double)d-> download()->down_rate()->rate() / (1 << 10),152 (double)d-> download()->up_rate()->total() / (1 << 20));150 (double)d->info()->up_rate()->rate() / (1 << 10), 151 (double)d->info()->down_rate()->rate() / (1 << 10), 152 (double)d->info()->up_rate()->total() / (1 << 20)); 153 153 154 154 if (d->download()->info()->is_active() && !d->is_done()) { … … 217 217 char* 218 218 print_download_time_left(char* first, char* last, core::Download* d) { 219 uint32_t rate = d-> download()->down_rate()->rate();219 uint32_t rate = d->info()->down_rate()->rate(); 220 220 221 221 if (rate < 512)
