}\r
} \r
}\r
-\r
- free(cmd);\r
+ free(cmd);\r
}\r
\r
/* ========== This function executes, logs OR ALSO prints command ========== */\r
string(restor,STRLEN);\r
\r
/*-----------------------------------------------------------------*/\r
- printf("Running %s <%s ...\n",iptablesrestore,iptablesfile);\r
+ printf("Running %s <%s ...\n", iptablesrestore, iptablesfile);\r
/*-----------------------------------------------------------------*/\r
\r
save_line("COMMIT");\r
}\r
if(ip->traffic || ip->direct || ip->proxy || ip->upload)\r
{\r
- fprintf(f, "%d:{\"ip\":%s, \"total\":%Lu, \"down\":%Lu, \"proxy\":%Lu, \"up\":%Lu}\n",\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
}\r
jsoncount++;\r