...
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 0870bce..b4ed05d 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
    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
    {\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
               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
 <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
    {\r
     fprintf(f,"<th style=\"text-align: right\">%d IPs</th>",keyword->ip_count);\r
    }\r
This page took 0.115322 seconds and 4 git commands to generate.