+2007-11-08 11:26 -0800 Brendan Cully <brendan@kublai.com> (3869e46f6fd4)
+
+ * color.c, copy.c, imap/command.c: Turn down some debug logging
+ levels
+
2007-11-08 09:03 +0100 Rocco Rutte <pdmef@gmx.net> (92a6bfbed657)
* doc/Makefile.am: Add stamp-doc-rc to makedoc-all to build Muttrc
The keys used are:
!: modified feature, -: deleted feature, +: new feature
+ + $time_inc suppresses progress updates less than $time_inc
+ milliseconds apart.
+
1.5.17 (2007-11-01):
! --enable-exact-address works again
#include <langinfo.h>
#endif
-#define PROGRESS_REFRESH_MILLIS 250
-
/* not possible to unget more than one char under some curses libs, and it
* is impossible to unget function keys in SLang, so roll our own input
* buffering routines.
}
if (gettimeofday (&tv, NULL) < 0)
dprint (1, (debugfile, "gettimeofday failed: %d\n", errno));
- progress->timestamp = tv.tv_sec * 1000 + tv.tv_usec / 1000;
+ /* if timestamp is 0 no time-based suppression is done */
+ if (TimeInc)
+ progress->timestamp = tv.tv_sec * 1000 + tv.tv_usec / 1000;
mutt_progress_update (progress, 0, 0);
}
/* skip refresh if not enough time has passed */
if (update && progress->timestamp && !gettimeofday (&tv, NULL)) {
now = tv.tv_sec * 1000 + tv.tv_usec / 1000;
- if (now && now - progress->timestamp < PROGRESS_REFRESH_MILLIS)
+ if (now && now - progress->timestamp < TimeInc)
update = 0;
}
if (update)
{
+ dprint (1, (debugfile, "Updating progress: %ld\n", pos));
if (progress->flags & M_PROGRESS_SIZE)
{
pos = pos / (progress->inc << 10) * (progress->inc << 10);
WHERE short SaveHist;
WHERE short SendmailWait;
WHERE short SleepTime INITVAL (1);
+WHERE short TimeInc;
WHERE short Timeout;
WHERE short Wrap;
WHERE short WriteInc;
** When set, the internal-pager will pad blank lines to the bottom of the
** screen with a tilde (~).
*/
+ { "time_inc", DT_NUM, R_NONE, UL &TimeInc, 0 },
+ /*
+ ** .pp
+ ** Along with ``$read_inc'', ``$write_inc'', and ``$net_inc'', this
+ ** variable controls the frequency with which progress updates are
+ ** displayed. It suppresses updates less than ``$time_inc'' milliseconds
+ ** apart. This can improve throughput on systems with slow terminals,
+ ** or when running mutt on a remote system.
+ */
{ "timeout", DT_NUM, R_NONE, UL &Timeout, 600 },
/*
** .pp