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

Commit e61c9b10 authored by Todd Kjos's avatar Todd Kjos
Browse files

Fix off-by-one error with binderThroughputTest -s



The -s option to binderThroughputTest allows the user
to set the size of the payload being sent during the
test. Due to an off-by-one error, the size was actually
4 bytes less than specified. Fixed.

Test: verified correct size
Bug: 65052700
Change-Id: I884fe08c113c2ca63a6f328741fb0914799e9eb7
Signed-off-by: default avatarTodd Kjos <tkjos@google.com>
parent 42ec4974
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -215,7 +215,7 @@ void worker_fx(int num,
        int target = cs_pair ? num % server_count : rand() % workers.size();
        int sz = payload_size;

        while (sz > sizeof(uint32_t)) {
        while (sz >= sizeof(uint32_t)) {
            data.writeInt32(0);
            sz -= sizeof(uint32_t);
        }