INN commit: branches/2.6/frontends (ovdb_stat.c)

INN Commit rra at isc.org
Sun Feb 4 15:34:13 UTC 2018


    Date: Sunday, February 4, 2018 @ 07:34:12
  Author: iulius
Revision: 10240

ovdb_stat:  fix HTML output and Usage information

Modified:
  branches/2.6/frontends/ovdb_stat.c

-------------+
 ovdb_stat.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Modified: ovdb_stat.c
===================================================================
--- ovdb_stat.c	2018-02-04 15:33:39 UTC (rev 10239)
+++ ovdb_stat.c	2018-02-04 15:34:12 UTC (rev 10240)
@@ -64,7 +64,7 @@
 static void display_heading(const char *str)
 {
     if(html)
-	printf("<h2>%s<h2>\n", str);
+	printf("<h2>%s</h2>\n", str);
     else
 	printf("%s\n", str);
 }
@@ -728,7 +728,7 @@
     if(err) {
 	fprintf(stderr, "\
 Usage:\n\
-   ovdb_stat -Hgci [-r artnum] newsgroup [newsgroup ...]\n\
+   ovdb_stat [-Hgci] [-r artnum] newsgroup [newsgroup ...]\n\
       -H              : output in HTML\n\
       -g              : show groupstats info\n\
       -c              : show groupstats info by counting actual records\n\
@@ -735,7 +735,7 @@
       -i              : show additional group info\n\
       -r artnum-range : retrieve OV records for article number range\n\
 \n\
-   ovdb_stat -Hklmtv [-d <database>]\n\
+   ovdb_stat [-HklmMtv] [-d <database>]\n\
       -H          : output in HTML\n\
       -k          : Display lock region statistics\n\
       -l          : Display log region statistics\n\
@@ -891,8 +891,8 @@
 	    puts("</pre>");
     }
 out:
-    if(html)
-	puts("<p></body></html>");
+    if((html == 1) && (err == 0))
+        puts("<p></body></html>");
     ovdb_close();
     return 0;
 }



More information about the inn-committers mailing list