From 29783b401e04e4e38a139f22b30e832f29e3c447 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 26 Sep 1996 04:38:33 +0000 Subject: Even more improved sizeticker. svn path=/trunk/; revision=156 --- driver.c | 6 +++--- fetchmail.h | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/driver.c b/driver.c index 992ef7a4..bc2e87c2 100644 --- a/driver.c +++ b/driver.c @@ -467,11 +467,11 @@ int rewrite; skipwrite:; sizeticker += strlen(bufp); - while (sizeticker >= MSGBUFSIZE) + while (sizeticker >= SIZETICKER) { if (outlevel > O_SILENT && outlevel < O_VERBOSE && mboxfd != 1) fputc('.',stderr); - sizeticker -= MSGBUFSIZE; + sizeticker -= SIZETICKER; } lines++; } @@ -790,7 +790,7 @@ va_dcl { fprintf(stderr,"> %s\n", buf); ok = (protocol->parse_response)(buf,socket); - if (ok != 0 && outlevel > O_SILENT && outlevel <= O_VERBOSE) + if (outlevel > O_SILENT && outlevel <= O_VERBOSE) fprintf(stderr,"%s\n",buf); return(ok); diff --git a/fetchmail.h b/fetchmail.h index 2db2e5b2..0733be2f 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -54,6 +54,8 @@ #define TO_STDOUT 3 /* use stdout */ #define TO_MDA 4 /* use agent */ +#define TICKERSIZE 1024 /* print 1 dot per this many bytes */ + struct hostrec { char servername [HOSTLEN+1]; -- cgit v1.2.3