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 8301c0d9c8497ffe5b410a19b33c7301a6522976..8c70bb0b86e7340f2feff6f13b3a1c47302fc75e 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.197783 seconds and 4 git commands to generate.