X-Git-Url: https://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=htmlandlogs.c;fp=htmlandlogs.c;h=b6f9cb66602c080c23b220dd177cd2076a95df98;hp=70377848b7c501bd89f458541495d637d9ecf941;hb=9f552e96b7c3ed1b5af6578252c0154491132a10;hpb=d1dd0f041b98807ce8b6dfd5d46983427d3a7f16 diff --git a/htmlandlogs.c b/htmlandlogs.c index 7037784..b6f9cb6 100644 --- a/htmlandlogs.c +++ b/htmlandlogs.c @@ -14,7 +14,6 @@ extern const char *version; extern const char *stats_html_signature; extern char *jquery_url; extern int keywordcount; -extern long long int line; extern int dry_run; extern int qos_proxy; extern char *title; @@ -100,19 +99,19 @@ void write_htmlandlogs(char *html, char *d, int total, int just_preview) count++; } #ifdef DEBUG - printf("Total groups: %d Total bandwidth requested: %d kb/s\nAGGREGATION: 1/%d\n", - count, i, i/line); + printf("Total groups: %d Total bandwidth requested: %d kb/s\n", + count, i, i); #endif fprintf(f,"\n\ \n\ -Line %Ld kb/s",line); +"); fprintf(f,"%d%d kb/s",total,i); for_each(keyword, keywords) if(keyword->ip_count) { fprintf(f,"%d IPs",keyword->ip_count); } - fprintf(f,"Aggregation 1/%d\n", (int)(0.5+i/line)); + fprintf(f,"\n"); fprintf(f,"%d traffic classes\n", keywordcount, total); fputs("\n",f);