{\r
fputs("-------",f);\r
} \r
- fprintf(f, "<td align=\"right\">%ld M</td><th align=\"right\">%ld G</th><td align=\"right\">%ld kbps</th></tr>\n",\r
+ fprintf(f, "<td align=\"right\">%ld M</td><th align=\"right\">%ld G</th><td align=\"right\">%ld kbps</th></tr>\n",\r
iplog->traffic, iplog->traffic>>10, iplog->guaranted);\r
total+=iplog->traffic>>10;\r
iplog->i=i;\r
#ifdef DEBUG\r
printf("%d k group: %d bandwidth requested: %d k\n",group->min,group->count,group->desired);\r
#endif\r
- fprintf(f,"<tr><td align=\"right\">%d</td><td align=\"right\">%d k</td>",\r
+ fprintf(f,"<tr><td align=\"right\">%d</td><td align=\"right\">%d k</td>",\r
count, group->min);\r
- fprintf(f,"<td align=\"right\">%d</td><td align=\"right\">%d k</td>",\r
+ fprintf(f,"<td align=\"right\">%d</td><td align=\"right\">%d k</td>",\r
group->count, group->desired);\r
\r
for_each(keyword, keywords)\r
{\r
- fprintf(f,"<td align=\"right\"><span style=\"color:#%s\">%d M</span></td>",\r
+ fprintf(f,"<td align=\"right\"><span style=\"color:#%s\">%d M</span></td>",\r
keyword->html_color, group->min*keyword->data_limit);\r
} \r
i += group->desired; \r
}\r
fputs("</td>\n",f);\r
}\r
- fprintf(f,"<td align=\"right\">%Lu M</td>\n", ip->credit);\r
- fprintf(f,"<td align=\"right\"><span style=\"color:#%s\">%Lu M</span></td>",\r
+ fprintf(f,"<td align=\"right\">%Lu M</td>\n", ip->credit);\r
+ fprintf(f,"<td align=\"right\"><span style=\"color:#%s\">%Lu M</span></td>",\r
ip->keyword->html_color,\r
ip->credit+(ip->min*ip->keyword->data_limit+(ip->keyword->fixed_limit<<20)));\r
- fprintf(f,"<td align=\"right\">%s%Lu M%s", f1, ip->traffic, f2);\r
+ fprintf(f,"<td align=\"right\">%s%Lu M%s", f1, ip->traffic, f2);\r
\r
/* download --------------------------------------- */\r
- fprintf(f,"</td><td align=\"right\">%Lu M", ip->direct);\r
+ fprintf(f,"</td><td align=\"right\">%Lu M", ip->direct);\r
if(use_jquery_popups)\r
{\r
fprintf(f,"<span id=\"download_%d\" style=\"display:none\">",i);\r
for_each(sharedip, ips) if(eq(ip->name, sharedip->sharing))\r
{\r
- fprintf(f,"<br />%Lu M", sharedip->direct);\r
+ fprintf(f,"<br />%Lu M", sharedip->direct);\r
}\r
fputs("</span>\n",f);\r
}\r
\r
if(qos_proxy)\r
{\r
- fprintf(f,"<td align=\"right\">%Lu M</td>\n", ip->proxy);\r
+ fprintf(f,"<td align=\"right\">%Lu M</td>\n", ip->proxy);\r
}\r
/* upload ---------------------------------------- */\r
- fprintf(f,"<td align=\"right\">%Lu M", ip->upload);\r
+ fprintf(f,"<td align=\"right\">%Lu M", ip->upload);\r
if(use_jquery_popups)\r
{\r
fprintf(f,"<span id=\"upload_%d\" style=\"display:none\">",i);\r
for_each(sharedip,ips) if(eq(ip->name, sharedip->sharing))\r
{\r
- fprintf(f,"<br />%Lu M", sharedip->upload);\r
+ fprintf(f,"<br />%Lu M", sharedip->upload);\r
}\r
fputs("</span>\n",f);\r
}\r
fputs("</td>\n",f);\r
/* ----------------------------------------------- */\r
\r
- fprintf(f,"<td align=\"right\">%d k</td><td align=\"right\">%d k</td><td align=\"right\">%s%d k%s</td><td>%s%d%s</td></tr>\n",\r
+ fprintf(f,"<td align=\"right\">%d k</td><td align=\"right\">%d k</td><td align=\"right\">%s%d k%s</td><td>%s%d%s</td></tr>\n",\r
ip->min,ip->desired,f1,ip->max,f2,f1,ip->prio,f2);\r
\r
total_traffic+=ip->traffic;\r
}\r
}\r
fprintf(f,"<tr><th colspan=\"%d\" align=\"left\">%d CLASSES</th>", colspan-7, i);\r
- fprintf(f,"<th align=\"right\">%Lu M</th><th align=\"right\">%Lu M</th>\n", total_traffic, total_direct);\r
+ fprintf(f,"<th align=\"right\">%Lu M</th><th align=\"right\">%Lu M</th>\n", total_traffic, total_direct);\r
if(qos_proxy)\r
{\r
- fprintf(f,"<th align=\"right\">%Lu M</th>\n", total_proxy);\r
+ fprintf(f,"<th align=\"right\">%Lu M</th>\n", total_proxy);\r
}\r
- fprintf(f,"<th align=\"right\">%Lu M</th>", total_upload);\r
+ fprintf(f,"<th align=\"right\">%Lu M</th>", total_upload);\r
fprintf(f,"<th colspan=\"4\"><span style=\"color:red\">FUP-LIMIT %dx</span> <span style=\"color:brown\">LOW-PRIO %dx</span></th></tr>\n</table>\n",limit_count,prio_count);\r
\r
if(active_classes>10)\r