X-Git-Url: http://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=htmlandlogs.c;h=98af96c4a3fb22b34208d9e0bd8b5c3c9450beb8;hp=f624a48442c56c3d508c1b01f149de98f8b9d061;hb=0db8e99319ee2e9798ba7fb58a7666791cf81414;hpb=9a56ab25128074e581fa5f69bac8afa2fb939c82 diff --git a/htmlandlogs.c b/htmlandlogs.c index f624a48..98af96c 100644 --- a/htmlandlogs.c +++ b/htmlandlogs.c @@ -50,7 +50,7 @@ void write_htmlandlogs(char *html, char *d, int total, int just_preview) { int i; char *str; - FILE *f=fopen(html,"w"); + FILE *f=fopen(html, "w"); string(str,STRLEN); if(f > 0) @@ -58,10 +58,6 @@ void write_htmlandlogs(char *html, char *d, int total, int just_preview) int count=1; i=0; - /*-----------------------------------------------------------------*/ - printf("Writing statistics summary into HTML page %s ...\n", html); - /*-----------------------------------------------------------------*/ - if(use_jquery_popups) { fprintf(f,"\n", jquery_url); @@ -225,8 +221,7 @@ void write_htmlandlogs(char *html, char *d, int total, int just_preview) } fprintf(f,"%Lu\n", ip->credit); fprintf(f,"%Lu", - ip->keyword->html_color, - ip->credit+(ip->min*ip->keyword->data_limit+(ip->keyword->fixed_limit<<20))); + ip->keyword->html_color, ip->realquota); fprintf(f,"%s%Lu%s", f1, ip->traffic, f2); /* download --------------------------------------- */