diff -ur CURRENT-20060829.orig/doc/pod/inn.conf.pod CURRENT-20060829/doc/pod/inn.conf.pod
old
|
new
|
|
1025 | 1025 | report is written to I<pathhttp>/inn_status.html. If this is set to C<0> or |
1026 | 1026 | C<false>, status reporting is disabled. The default value is C<0>. |
1027 | 1027 | |
| 1028 | =item I<logstatus> |
| 1029 | |
| 1030 | Boolean value indicating that innd(8) should write a shortened version of |
| 1031 | its status report to syslog every C<status> seconds. |
| 1032 | |
1028 | 1033 | =item I<timer> |
1029 | 1034 | |
1030 | 1035 | How frequently (in seconds) innd(8) should report performance timings to |
diff -ur CURRENT-20060829.orig/include/inn/innconf.h CURRENT-20060829/include/inn/innconf.h
old
|
new
|
|
139 | 139 | long nntpactsync; /* Checkpoint log after this many articles */ |
140 | 140 | bool nntplinklog; /* Put storage token into the log? */ |
141 | 141 | long status; /* Status file update interval */ |
| 142 | bool logstatus; /* Send a status report to syslog? */ |
142 | 143 | long timer; /* Performance monitoring interval */ |
143 | 144 | char *stathist; /* Filename for history profiler outputs */ |
144 | 145 | |
diff -ur CURRENT-20060829.orig/innd/status.c CURRENT-20060829/innd/status.c
old
|
new
|
|
291 | 291 | fprintf (F, " rejected size: %-7s %%rejected size: %.1f%%\n", |
292 | 292 | PrettySize(RejectSize, str), (float) RejectSize / size * 100); |
293 | 293 | fputc ('\n', F) ; |
294 | | |
| 294 | |
| 295 | if(innconf->logstatus) { |
| 296 | notice ("%s status seconds %ld accepted %ld " |
| 297 | "refused %ld rejected %ld duplicated %ld " |
| 298 | "accepted size %.0f duplicate size %.0f rejected size %.0f\n", |
| 299 | "ME", (long) seconds, accepted, |
| 300 | refused, rejected, duplicate, |
| 301 | size, DuplicateSize, RejectSize); |
| 302 | } |
| 303 | |
295 | 304 | /* Incoming Feeds */ |
296 | 305 | for (status = head ; status != NULL ;) { |
297 | 306 | fprintf (F, "%s\n", status->name); |
… |
… |
|
335 | 344 | NNTP_ERR_GOTID_VAL, status->Check_cybercan); |
336 | 345 | } |
337 | 346 | fputc ('\n', F) ; |
| 347 | |
| 348 | if(innconf->logstatus) { |
| 349 | notice("%s status seconds %ld accepted %ld " |
| 350 | "refused %ld rejected %ld duplicated %ld " |
| 351 | "accepted size %.0f duplicate size %.0f rejected size %.0f\n", |
| 352 | status->name, (long) status->seconds, status->accepted, |
| 353 | status->refused, status->rejected, status->Duplicate, |
| 354 | status->Size, status->DuplicateSize, status->RejectSize); |
| 355 | } |
| 356 | |
338 | 357 | tmp = status->next; |
339 | 358 | free(status); |
340 | 359 | status = tmp; |
… |
… |
|
346 | 365 | #endif /* defined(HTML_STATUS) */ |
347 | 366 | |
348 | 367 | Fclose(F); |
| 368 | free(path); |
349 | 369 | } |
350 | 370 | |
351 | 371 | void |
diff -ur CURRENT-20060829.orig/lib/innconf.c CURRENT-20060829/lib/innconf.c
old
|
new
|
|
171 | 171 | { K(remembertrash), BOOL (true) }, |
172 | 172 | { K(stathist), STRING (NULL) }, |
173 | 173 | { K(status), NUMBER (0) }, |
| 174 | { K(logstatus), BOOL (false) }, |
174 | 175 | { K(verifycancels), BOOL (false) }, |
175 | 176 | { K(wanttrash), BOOL (false) }, |
176 | 177 | { K(wipcheck), NUMBER (5) }, |
diff -ur CURRENT-20060829.orig/samples/inn.conf.in CURRENT-20060829/samples/inn.conf.in
old
|
new
|
|
144 | 144 | nntpactsync: 200 |
145 | 145 | nntplinklog: false |
146 | 146 | status: 0 |
| 147 | logstatus: false |
147 | 148 | timer: 0 |
148 | 149 | |
149 | 150 | # System Tuning |