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");
19 and (ip
->traffic
or ip
->direct
or ip
->proxy
or ip
->upload
))
26 " \"%s\":{ \"lms\": %d, \"ip\":\"%s\", \"total\":%Lu, \"down\":%Lu, \"proxy\":%Lu, \"up\":%Lu, \
27 \"min\":%d, \"max\":%d, \"limit\":%d, \"realquota\":%Lu, \"credit\":%Lu, \"dailyquota\":%ld }",
28 ip
->name
, ip
->lmsid
, ip
->addr
, ip
->traffic
, ip
->direct
, ip
->proxy
, ip
->upload
,
29 ip
->min
, ip
->desired
, ip
->max
, ip
->realquota
, ip
->credit
,
30 (ip
->min
*ip
->keyword
->data_limit
+(ip
->keyword
->fixed_limit
<<20)));
This page took 0.295531 seconds and 4 git commands to generate.