From: Frédéric Marchal Date: Sat, 20 Nov 2010 22:06:41 +0000 (+0000) Subject: Last line of siteuser page is not the same as the previous ones X-Git-Tag: v2.3.2~134 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a60a15dccad3bbcc04414c5961dd5148c7d84914;p=thirdparty%2Fsarg.git Last line of siteuser page is not the same as the previous ones The last line of the siteuser.html report page doesn't contain a link to block the site and doesn't show the bytes column. This patch makes it identical to the other lines in the report. --- diff --git a/siteuser.c b/siteuser.c index f7d0dbf..36e53f1 100644 --- a/siteuser.c +++ b/siteuser.c @@ -186,11 +186,21 @@ void siteuser(void) longline_destroy(&line); if(nsitesusers) { - fprintf(fp_ou,"%d%d",regs); + if(BlockIt[0]!='\0') { + fprintf(fp_ou," ",fp_ou); + } + fputs("",fp_ou); output_html_string(fp_ou,ourl,100); - fprintf(fp_ou,"%s\n",users); + fputs("",fp_ou); + if (BytesInSitesUsersReport) { + fprintf(fp_ou,"%s",fixnum(obytes,1)); + } + fprintf(fp_ou,"%s\n",users); } if (ourl) free(ourl);