summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-08-13 15:58:20 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-08-13 15:58:20 +0000
commit38d257e23671973ed88d9c97a70ade9e8a7bfb7c (patch)
treee3ab1a8637ccc92b71939a1eb91e3e4916739220 /src/fe-common
parent97c0b8311dddfed7ca350bb6419902056a9557e9 (diff)
downloadirssi-38d257e23671973ed88d9c97a70ade9e8a7bfb7c.zip
/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
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/irc/dcc/fe-dcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/irc/dcc/fe-dcc.c b/src/fe-common/irc/dcc/fe-dcc.c
index 3e2b140a..1a593573 100644
--- a/src/fe-common/irc/dcc/fe-dcc.c
+++ b/src/fe-common/irc/dcc/fe-dcc.c
@@ -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);