summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/dcc/fe-dcc-get.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-05-11 11:52:32 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-05-11 11:52:32 +0000
commitc61edaf7c9e43fc74610e5889ea46e4b6ce731cf (patch)
tree4fd9542a698ccadac1d93bc312aa02ce5ad7004c /src/fe-common/irc/dcc/fe-dcc-get.c
parent4c42e7d8943a1198380ad801726c005e06a097d4 (diff)
downloadirssi-c61edaf7c9e43fc74610e5889ea46e4b6ce731cf.zip
always round up the kB value so we won't have 0kB file sizes..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1468 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/dcc/fe-dcc-get.c')
-rw-r--r--src/fe-common/irc/dcc/fe-dcc-get.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-common/irc/dcc/fe-dcc-get.c b/src/fe-common/irc/dcc/fe-dcc-get.c
index b402ee3e..093b90e3 100644
--- a/src/fe-common/irc/dcc/fe-dcc-get.c
+++ b/src/fe-common/irc/dcc/fe-dcc-get.c
@@ -67,7 +67,8 @@ static void dcc_closed(GET_DCC_REC *dcc)
} else {
printformat(dcc->server, NULL, MSGLEVEL_DCC,
IRCTXT_DCC_GET_COMPLETE, dcc->arg,
- dcc->transfd/1024, dcc->nick, (long) secs, kbs);
+ (dcc->transfd+1023)/1024,
+ dcc->nick, (long) secs, kbs);
}
}