/[pkg-mixmaster]/trunk/Mix/Src/stats.c
ViewVC logotype

Diff of /trunk/Mix/Src/stats.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 535 by weaselp, Fri Jun 27 10:52:11 2003 UTC revision 540 by weaselp, Sun Jun 29 22:35:01 2003 UTC
# Line 6  Line 6 
6     details.     details.
7    
8     Remailer statistics     Remailer statistics
9     $Id: stats.c,v 1.22 2003/06/27 10:52:11 weaselp Exp $ */     $Id: stats.c,v 1.23 2003/06/29 22:35:01 weaselp Exp $ */
10    
11    
12  #include "mix3.h"  #include "mix3.h"
# Line 210  int stats(BUFFER *b) Line 210  int stats(BUFFER *b)
210      for ((i = (today - havestats) / SECONDSPERDAY) > 79 ? 79 : i;      for ((i = (today - havestats) / SECONDSPERDAY) > 79 ? 79 : i;
211           i >= 1; i--) {           i >= 1; i--) {
212        t = now - i * SECONDSPERDAY;        t = now - i * SECONDSPERDAY;
213        gt = localtime(&t);        gt = gmtime(&t);
214        strftime(line, LINELEN, "%d %b: ", gt);        strftime(line, LINELEN, "%d %b: ", gt);
215        buf_appends(b, line);        buf_appends(b, line);
216    
# Line 223  int stats(BUFFER *b) Line 223  int stats(BUFFER *b)
223          buf_appendf(b, "     PGP: %4d", msg[1][i]);          buf_appendf(b, "     PGP: %4d", msg[1][i]);
224        if (UNENCRYPTED)        if (UNENCRYPTED)
225          buf_appendf(b, "     Unencrypted:%4d", msg[0][i]);          buf_appendf(b, "     Unencrypted:%4d", msg[0][i]);
       if (pool[0][i] > 0)  
         buf_appendf(b, "  [Pool size:%4d]", pool[1][i] / pool[0][i]);  
226        if (STATSDETAILS) {        if (STATSDETAILS) {
227          buf_appendf(b, "  Intermediate:%4d", msg[3][i]);          buf_appendf(b, "  Intermediate:%4d", msg[3][i]);
228          buf_appendf(b, "  Mail:%4d", msg[4][i]);          buf_appendf(b, "  Mail:%4d", msg[4][i]);
# Line 232  int stats(BUFFER *b) Line 230  int stats(BUFFER *b)
230          if (MIDDLEMAN)          if (MIDDLEMAN)
231            buf_appendf(b, "  Randhopped:%4d", msg[6][i]);            buf_appendf(b, "  Randhopped:%4d", msg[6][i]);
232        }        }
233          if (pool[0][i] > 0)
234            buf_appendf(b, "  [Pool size:%4d]", pool[1][i] / pool[0][i]);
235  #if 0  #if 0
236        else        else
237          buf_appends(b, "  [ no remailing ]");          buf_appends(b, "  [ no remailing ]");

Legend:
Removed from v.535  
changed lines
  Added in v.540

  ViewVC Help
Powered by ViewVC 1.1.5