From: Anders Helmersson Date: Wed, 27 Feb 2008 12:27:47 +0000 (+0100) Subject: Fix progress updates for large messages. Closes #3029. X-Git-Tag: mutt-1-5-18-rel~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75e28869248af6919331b522141ba57ee624bf73;p=mutt Fix progress updates for large messages. Closes #3029. --- diff --git a/ChangeLog b/ChangeLog index e9a7ae8c..ce9536ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-02-27 09:30 +0100 N.J. Mann (eb4e214c8ced) + + * status.c: Cleanup status_format_str() + +2008-02-20 12:02 +0100 Rocco Rutte (9414b9dd36db) + + * ChangeLog, muttlib.c: Fix truncation logic for soft-padding (Closes + #3035). + 2008-01-29 21:06 -0800 Brendan Cully (fd741c1922f3) * hg-commit: Fix typo in hg-commit diff --git a/curs_lib.c b/curs_lib.c index ea3a2c0c..42a82915 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -426,7 +426,8 @@ void mutt_progress_update (progress_t* progress, long pos, int percent) if (progress->size > 0) { mutt_message ("%s %s/%s (%d%%)", progress->msg, posstr, progress->sizestr, - percent > 0 ? percent : progress->pos * 100 / progress->size); + percent > 0 ? percent : + (int) (100.0 * (double) progress->pos / progress->size)); } else {