Changeset 44961cb
- Timestamp:
- 2008-05-06T22:06:22Z (16 years ago)
- Branches:
- master
- Children:
- b043ad5
- Parents:
- d56ee38
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/si.c
rd56ee38 r44961cb 55 55 { 56 56 struct jabber_transfer *tf = ft->data; 57 time_t diff = time( NULL ) - ft->started ;57 time_t diff = time( NULL ) - ft->started ? : 1; 58 58 59 59 imcb_log( tf->ic, "File %s transferred successfully at %d kb/s!" , ft->file_name, (int) ( ft->bytes_transferred / 1024 / diff ) ); -
root_commands.c
rd56ee38 r44961cb 1076 1076 { 1077 1077 int kb_per_s = 0; 1078 time_t diff = time( NULL ) - file->started ;1078 time_t diff = time( NULL ) - file->started ? : 1; 1079 1079 if ( ( file->started > 0 ) && ( file->bytes_transferred > 0 ) ) 1080 1080 kb_per_s = file->bytes_transferred / 1024 / diff;
Note: See TracChangeset
for help on using the changeset viewer.