Changeset 44961cb for root_commands.c


Ignore:
Timestamp:
2008-05-06T22:06:22Z (16 years ago)
Author:
ulim <a.sporto+bee@…>
Branches:
master
Children:
b043ad5
Parents:
d56ee38
Message:

fix bug in new kb/s display for transfers of less than one second.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    rd56ee38 r44961cb  
    10761076                        {
    10771077                                int kb_per_s = 0;
    1078                                 time_t diff = time( NULL ) - file->started;
     1078                                time_t diff = time( NULL ) - file->started ? : 1;
    10791079                                if ( ( file->started > 0 ) && ( file->bytes_transferred > 0 ) )
    10801080                                        kb_per_s = file->bytes_transferred / 1024 / diff;
Note: See TracChangeset for help on using the changeset viewer.