snprintf(command,BUFFER_SIZE,"create table if not exists %s.%s%d using %s.meters tags (%d,\"%s\");",winfo->db_name,winfo->tb_prefix,i,winfo->db_name,j,"shanghai");
}else{
snprintf(command,BUFFER_SIZE,"create table if not exists %s.%s%d using %s.meters tags (%d,\"%s\");",winfo->db_name,winfo->tb_prefix,i,winfo->db_name,j,"beijing");
}
floata=5.0;
floatx=(float)rand()/(float)(RAND_MAX*a);
snprintf(command,BUFFER_SIZE,"INSERT INTO %s.%s%050d using %s.meters tags (\"%050d\") VALUES(now, %f);",winfo->db_name,winfo->tb_prefix,i,winfo->db_name,i,x);