- fprintf(f,"<tr><td>All users, all traffic</td>\n");\r
- fprintf(f,"<th align=\"right\">%d</th><th align=\"right\">100 %%</th><th align=\"right\">%Lu M</th><th align=\"right\">100 %%</th></tr>\n",active_classes,total);\r
- fputs("</table>\n", f);\r
+ fprintf(f,"<tr><thead><th><a class=\"blue\" href=\"%sERP.log\">All users, all traffic</a></th>\n", log_url);\r
+ fprintf(f,"<th style=\"text-align: right\">%d</th>\n\\r
+<th style=\"text-align: right\">100 %%</th>\n\\r
+<th style=\"text-align: right\">%Lu M</th>\n\\r
+<th style=\"text-align: right\">100 %%</th></tr>\n",active_classes,total_traffic);\r
+ fputs("</thead></table>\n", f);\r
+\r
+ /* write basic ERP data to log directory */\r
+ if(!just_preview)\r
+ {\r
+ sprintf(str,"%s/ERP.log",log_dir);\r
+ iplog=fopen(str,"a");\r
+ if(iplog)\r
+ {\r
+ fprintf(iplog,"%ld\t%d\t%d %%\t%Lu M\t%Ld %%\tACTIVE %d\tTRAFFIC %Lu M\tCLASSES %d\tFUP-LIMIT %d\tLOW-PRIO %d\t%s",\r
+ time(NULL), top20_count, top20_perc1, top20_sum, top20_perc2, \r
+ active_classes, total_traffic, i, limit_count, prio_count, d); /* d = date*/\r
+ fclose(iplog);\r
+ }\r
+ }\r