[balsa] Round size in kibibytes
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] Round size in kibibytes
- Date: Tue, 6 Apr 2010 01:00:00 +0000 (UTC)
commit e05fb8b8342e55ed9b057af6aeec3f292ae8077a
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Mon Apr 5 20:58:01 2010 -0400
Round size in kibibytes
* libbalsa/mailbox_imap.c (multi_append_cb): round size in
kibibytes, for consistency with libbalsa_size_to_gchar.
ChangeLog | 5 +++++
libbalsa/mailbox_imap.c | 5 +++--
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index be92954..bcc6348 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2010-04-05 Peter Bloomfield
+ * libbalsa/mailbox_imap.c (multi_append_cb): round size in
+ kibitytes, for consistency with libbalsa_size_to_gchar.
+
+2010-04-05 Peter Bloomfield
+
* src/balsa-index.c (bndx_string_width), (bndx_instance_init),
(balsa_index_set_column_widths): get column width as actual
string width.
diff --git a/libbalsa/mailbox_imap.c b/libbalsa/mailbox_imap.c
index a6c1578..cb42b8f 100644
--- a/libbalsa/mailbox_imap.c
+++ b/libbalsa/mailbox_imap.c
@@ -2814,7 +2814,7 @@ multi_append_cb(char * buf, size_t buflen,
GMimeFilter *crlffilter;
gint outfd;
GMimeStream *stream = NULL;
- gssize len;
+ gint64 len;
LibBalsaMessageFlag flags;
GError**err = macd->err;
gchar *outf = NULL;
@@ -2866,7 +2866,8 @@ multi_append_cb(char * buf, size_t buflen,
if (len > (signed) SizeMsgThreshold)
libbalsa_information(LIBBALSA_INFORMATION_MESSAGE,
- _("Uploading %ld kB"), (long) len / 1024);
+ _("Uploading %" G_GINT64_FORMAT " kB"),
+ (len + 512) / 1024);
*return_flags = imap_flags;
macd->copied++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]