Merge branch 'release-5.0'

This commit is contained in:
A.J. Beamon 2017-09-08 17:28:12 -07:00
commit 4fa2415553
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ struct ThroughputWorkload : TestWorkload {
double ierror = (self->totalLatencyIntegral - self->totalTransactionsIntegral * self->targetLatency) /
self->totalTransactionsIntegral * (after-self->startT);
double desiredSuccessors = 1 - error*self->Pgain - ierror*self->Igain;
double desiredSuccessors = 1 - (error*self->Pgain + ierror*self->Igain) / self->targetLatency;
//if (g_random->random01() < .001) TraceEvent("ThroughputControl").detail("Error", error).detail("IError", ierror).detail("DesiredSuccessors", desiredSuccessors).detail("ActiveActors", self->activeActors);