c9c63f0eb8dd37a4a5a7f4960d1393f156f3db84
1 /* Modified by: xChaos, 20121011 */
3 #include "cll1-0.6.2.h"
6 extern struct IP
*ips
, *ip
;
8 void write_json_traffic(char *json
)
10 FILE *f
=fopen(json
, "w");
18 and (ip
->traffic
or ip
->direct
or ip
->proxy
or ip
->upload
))
24 fprintf(f
, " \"%s\":{ \"lms\": %d, \"ip\":\"%s\", \"total\":%Lu, \"down\":%Lu, \"proxy\":%Lu, \"up\":%Lu,\
25 \"min\":%d, \"max\":%d, \"limit\":%d, \"realquota\":%Lu, \"credit\":%Lu, \"dailyquota\":%ld }",
26 ip
->name
, ip
->lmsid
, ip
->addr
, ip
->traffic
, ip
->direct
, ip
->proxy
, ip
->upload
,
27 ip
->min
, ip
->desired
, ip
->max
, ip
->realquota
, ip
->credit
,
28 (ip
->min
*ip
->keyword
->data_limit
+(ip
->keyword
->fixed_limit
<<20)));
This page took 0.334759 seconds and 3 git commands to generate.