| 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" |
| 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 |
|
|
| 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]); |
| 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 ]"); |