Show
Ignore:
Timestamp:
03/15/10 14:31:50 (2 years ago)
Author:
rakshasa
Message:

* Cleaned up torrent/download.h.

* Removed raw_value as it is redundant.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rtorrent/src/display/utils.cc

    r1144 r1145  
    128128char* 
    129129print_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()); 
    131131} 
    132132 
     
    148148   
    149149  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)); 
    153153 
    154154  if (d->download()->info()->is_active() && !d->is_done()) { 
     
    217217char* 
    218218print_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(); 
    220220 
    221221  if (rate < 512)