Skip to content

Commit

Permalink
do operations without sleep with 0 tps
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Nov 20, 2023
1 parent 95c87e5 commit dbd3f50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/mqtt5_canary/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ static void s_ParseOptions(int argc, char **argv, struct AppCtx &ctx, struct Aws

static void s_Mqtt5CanaryUpdateTpsSleepTime(struct AwsMqtt5CanaryTesterOptions *testerOptions)
{
testerOptions->tpsSleepTime =

testerOptions->tpsSleepTime = testerOptions->tps == 0 ? 0 :
(aws_timestamp_convert(1, AWS_TIMESTAMP_SECS, AWS_TIMESTAMP_NANOS, NULL) / testerOptions->tps);
}

Expand Down

0 comments on commit dbd3f50

Please sign in to comment.