Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b17a312 authored by Todd Kjos's avatar Todd Kjos
Browse files

Fix binderThroughputTest -m option



The -m option allows the user to specify the estimated
max latency to calibrate buckets used for percentile
calculations. The option didn't work because the
time_per_bucket was not being set so the default value
was used.

Test: verified correct -m operation
Bug: 65052581
Change-Id: I96d6ba0271edaffda0bd9cccfef5d559d3bf111c
Signed-off-by: default avatarTodd Kjos <tkjos@google.com>
parent be1a67ca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -381,6 +381,7 @@ int main(int argc, char *argv[])
            // No need to run training round in this case.
            if (atoi(argv[i+1]) > 0) {
                max_time_bucket = strtoull(argv[i+1], (char **)NULL, 10) * 1000;
                time_per_bucket = max_time_bucket / num_buckets;
                i++;
            } else {
                cout << "Max latency -m must be positive." << endl;