version 1.8, 2008/06/18 18:12:11
|
version 1.9, 2008/06/26 18:32:47
|
|
|
// commands. | // commands. |
// like, -clientid, -pidfile, -clientlog | // like, -clientid, -pidfile, -clientlog |
// | // |
for (int instanceID =0;instanceID<clientInstance[j]; |
for (Uint32 instanceID = 0; instanceID<clientInstance[j]; |
instanceID++) | instanceID++) |
{ | { |
outPrintWriter<< | outPrintWriter<< |
|
|
// | // |
// Stop all the instances of this client | // Stop all the instances of this client |
// | // |
for (int instanceID =0; |
for (Uint32 instanceID = 0; |
instanceID<clientInstance[clientID]; | instanceID<clientInstance[clientID]; |
instanceID++) | instanceID++) |
{ | { |
|
|
// | // |
// Restart all the instances of the client. | // Restart all the instances of the client. |
// | // |
for (int instanceID =0; |
for (Uint32 instanceID = 0; |
instanceID<clientInstance[clientID]; | instanceID<clientInstance[clientID]; |
instanceID++) | instanceID++) |
{ | { |
|
|
act_command.append( | act_command.append( |
_clientCommands.get()[clientID]); | _clientCommands.get()[clientID]); |
act_command.append(" -clientid "); | act_command.append(" -clientid "); |
sprintf(str,"%d",clientID+instanceID); |
sprintf(str,"%u",clientID+instanceID); |
act_command.append(str); | act_command.append(str); |
act_command.append(" -pidfile "); | act_command.append(" -pidfile "); |
act_command.append(" \""); | act_command.append(" \""); |
|
|
} | } |
} | } |
clientActive[clientID+instanceID] = true; | clientActive[clientID+instanceID] = true; |
} /* for (int instanceID =0;instanceID .. */ |
} /* for (Uint32 instanceID =0;instanceID .. */ |
clientStopMilliseconds.get()[clientID] = | clientStopMilliseconds.get()[clientID] = |
nowMilliseconds + | nowMilliseconds + |
_clientDurations.get()[clientID]; | _clientDurations.get()[clientID]; |