Ignore:
Timestamp:
2008-05-06T22:06:22Z (14 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
  • protocols/jabber/si.c

    rd56ee38 r44961cb  
    5555{
    5656        struct jabber_transfer *tf = ft->data;
    57         time_t diff = time( NULL ) - ft->started;
     57        time_t diff = time( NULL ) - ft->started ? : 1;
    5858
    5959        imcb_log( tf->ic, "File %s transferred successfully at %d kb/s!" , ft->file_name, (int) ( ft->bytes_transferred / 1024 / diff ) );
Note: See TracChangeset for help on using the changeset viewer.