From 75cfe922b9faac0ddeb071678e14c82d6d6d51d3 Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Thu, 19 Mar 2009 16:47:02 +0100 Subject: [PATCH] Fix progress update debug message --- curs_lib.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/curs_lib.c b/curs_lib.c index b7ef169ed..2427e609f 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -420,7 +420,6 @@ void mutt_progress_update (progress_t* progress, long pos, int percent) if (update) { - dprint (1, (debugfile, "Updating progress: %ld\n", pos)); if (progress->flags & M_PROGRESS_SIZE) { pos = pos / (progress->inc << 10) * (progress->inc << 10); @@ -428,7 +427,9 @@ void mutt_progress_update (progress_t* progress, long pos, int percent) } else snprintf (posstr, sizeof (posstr), "%ld", pos); - + + dprint (5, (debugfile, "updating progress: %s\n", posstr)); + progress->pos = pos; if (now) progress->timestamp = now; -- 2.40.0