mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
/DCC LIST: % done didn't work right with large files.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@602 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
97c0b8311d
commit
38d257e236
@ -410,7 +410,7 @@ static void cmd_dcc_list(const char *data)
|
||||
else
|
||||
printformat(NULL, NULL, MSGLEVEL_DCC, IRCTXT_DCC_LIST_LINE_FILE,
|
||||
dcc->nick, dcc_type2str(dcc->type), dcc->transfd/1024, dcc->size/1024,
|
||||
dcc->size == 0 ? 0 : (100*dcc->transfd/dcc->size),
|
||||
dcc->size == 0 ? 0 : (int)((double)dcc->transfd/(double)dcc->size*100.0),
|
||||
(double) (dcc->transfd-dcc->skipped)/going/1024, dcc->arg);
|
||||
}
|
||||
printformat(NULL, NULL, MSGLEVEL_DCC, IRCTXT_DCC_LIST_FOOTER);
|
||||
|
Loading…
Reference in New Issue
Block a user