FACT++  1.0
int main ( int  argc,
char *  argv[] 
)

Definition at line 32 of file bigClient.cxx.

References Service::format, Service::getNbad(), Service::getNgood(), i, Service::name, Service::Service(), and sprintf().

33 {
34  int i, n, msgSize, nServices = 0;
35  Service **services;
36  float mps,tpm;
37  DimBrowser br;
38  char name[132], *format;
39 
40  sscanf(argv[1],"%d",&nServices);
41  services = new Service*[nServices];
42  for(i = 0; i < nServices; i++)
43  {
44  services[i] = 0;
45  }
46  for(i = 0; i < nServices; i++)
47  {
48  sprintf(name,"BENCH_SERVICE_%03d",i);
49  services[i] = new Service(name);
50  }
51  while(1)
52  {
53  sleep(10);
54  n = 0;
55  for(i = 0; i < nServices; i++)
56  {
57  if(services[i])
58  n += services[i]->getNgood();
59  }
60  cout << "N Good = "<< n << endl;
61  n = 0;
62  for(i = 0; i < nServices; i++)
63  {
64  if(services[i])
65  n += services[i]->getNbad();
66  }
67  cout << "N bad = "<< n << endl;
68  }
69 }
int i
Definition: db_dim_client.c:21
int getNgood()
Definition: bigClient.cxx:27
int getNbad()
Definition: bigClient.cxx:28
sprintf(name1,"NewService%d", i)

+ Here is the call graph for this function: