...
authorxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Sun, 13 May 2012 22:31:51 +0000 (22:31 +0000)
committerxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Sun, 13 May 2012 22:31:51 +0000 (22:31 +0000)
git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@178 251d49ef-1d17-4917-a970-b30cf55b089b

prometheus.c

index 0870bcec81a9239e117d95310c2b301c0022e77f..b4ed05dfd83384163601ccfd75f1cbee567ea0bb 100644 (file)
@@ -1646,9 +1646,9 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version);
    fprintf(f, "<td style=\"text-align: right\">%d</td><td style=\"text-align: right\">%d&nbsp;kb/s</td>",\r
               group->count, group->desired);\r
 \r
-   for_each(keyword, keywords)\r
+   for_each(keyword, keywords) if(keyword->ip_count)\r
    {\r
-    fprintf(f,"<td style=\"text-align: right\"><span style=\"color:#%s\">%d&nbsp;Mb/s</span></td>",\r
+    fprintf(f,"<td style=\"text-align: right\"><span style=\"color:#%s\">%d&nbsp;MB</span></td>",\r
               keyword->html_color, group->min*keyword->data_limit);\r
    }   \r
    i += group->desired; \r
@@ -1664,7 +1664,7 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version);
 <th colspan=\"2\" style=\"text-align: left\">Line %Ld kb/s</td>",line);\r
    fprintf(f,"<th style=\"text-align: right\">%d</td><th style=\"text-align: right\">%d kb/s</td>",total,i);\r
 \r
-   for_each(keyword, keywords)\r
+   for_each(keyword, keywords) if(keyword->ip_count)\r
    {\r
     fprintf(f,"<th style=\"text-align: right\">%d IPs</th>",keyword->ip_count);\r
    }\r
This page took 0.160935 seconds and 4 git commands to generate.