jobclient: bugfix: initialize timing statistics

If we don't properly initialize the job timing statistics, the number
of jobs to be requested in the second request to the server is based
on the wrong timings.  In our test case, CLIENT_JOB_LIMIT jobs were
requested at once.

Change-Id: I7e9d8ab6fe14e4488b3a74baf061d9a07f3a77c4
This commit is contained in:
Horst Schirmeier
2014-01-18 20:56:57 +01:00
parent 1f6e275e5e
commit ee7bc23d85

View File

@ -19,6 +19,8 @@ JobClient::JobClient(const std::string& server, int port)
}
srand(time(NULL)); // needed for random backoff (see connectToServer)
m_server_runid = 0; // server accepts this for virgin clients
m_job_total = 0;
m_job_runtime_total = 0;
m_job_throughput = 1; // client gets only one job at the first request
}