json bug fix :-)
authorxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Sun, 10 Jun 2012 10:37:13 +0000 (10:37 +0000)
committerxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Sun, 10 Jun 2012 10:37:13 +0000 (10:37 +0000)
git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@187 251d49ef-1d17-4917-a970-b30cf55b089b

prometheus.c

index 8301c0d..8c70bb0 100644 (file)
@@ -1653,7 +1653,8 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version);
     {\r
      fprintf(f, ",\n");\r
     }\r
-    if(ip->traffic || ip->direct || ip->proxy || ip->upload)\r
+    if(     ip->lmsid > 0 \r
+        && (ip->traffic || ip->direct || ip->proxy || ip->upload))\r
     {\r
      fprintf(f, " %d:{ \"ip\":\"%s\", \"total\":%Lu, \"down\":%Lu, \"proxy\":%Lu, \"up\":%Lu }",\r
                 ip->lmsid, ip->addr, ip->traffic, ip->direct, ip->proxy, ip->upload);\r
This page took 0.119469 seconds and 4 git commands to generate.