Member of The Internet Defense League Últimos cambios
Últimos Cambios
Blog personal: El hilo del laberinto Geocaching

Re: Fw: log file and volume of data ...

Última Actualización: 11 de Julio de 2.001 - Miércoles

Date: Thu, 21 Jun 2001 20:45:41 +0200
From: Jesus Cea Avion <jcea@argo.es>
Organization: Argo Redes y Servicios Telematicos, S.A. - http://www.argo.es/
To: Subscribers of Qpopper <qpopper@lists.pensive.org>
Subject: Re: Fw: log file and volume of data ...
References: <598934975346888831389@lists.pensive.org>
Message-Id: <044898057042588003009@lists.pensive.org>

> and my question can be reformulated in "why the statistics after each
> session (enabled with option -t) don't still integrate one additionnal
> field (after the 4 others numbers), that give the amount of fetched
> data (header + body) ?"

I've done trivial patch against current sources:

>>>>>

Index: popper/pop_updt.c
===================================================================
RCS file: /opt/src/cvsroot/qpopper/popper/pop_updt.c,v
retrieving revision 1.1.1.2
retrieving revision 1.1.1.2.14.1
diff -c -u -r1.1.1.2 -r1.1.1.2.14.1
cvs server: conflicting specifications of output style
--- popper/pop_updt.c   2001/04/16 21:44:34     1.1.1.2
+++ popper/pop_updt.c   2001/06/04 06:42:58     1.1.1.2.14.1
@@ -293,10 +293,11 @@
     DEBUG_LOG0 ( p, "Checking to see if all messages were deleted" );
 
     if ( p->bStats ) {
-        pop_log ( p, POP_PRIORITY, HERE, "Stats: %s %d %ld %d %ld %s %s",
+        pop_log ( p, POP_PRIORITY, HERE, "Stats: %s %d %ld %d %ld %ld %s %s",
                   p->user, p->msgs_deleted, p->bytes_deleted,
                   p->msg_count - p->msgs_deleted,
                   p->drop_size - p->bytes_deleted,
+                  ftell(p->output),
                   p->client, p->ipaddr );
     }
<<<<<
-- 
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea@argo.es http://www.argo.es/~jcea/ _/_/    _/_/  _/_/    _/_/  _/_/
                                      _/_/    _/_/          _/_/_/_/_/
PGP Key Available at KeyServ   _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz



Python Zope ©2001 jcea@jcea.es

Más información sobre los OpenBadges

Donación BitCoin: 19niBN42ac2pqDQFx6GJZxry2JQSFvwAfS