populate_db: Spell “stickiness” correctly.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2022-06-30 20:40:34 -07:00 committed by Tim Abbott
parent b991c8019e
commit f27a709a5e
1 changed files with 2 additions and 2 deletions

View File

@ -259,7 +259,7 @@ class Command(BaseCommand):
) )
parser.add_argument( parser.add_argument(
"--stickyness", "--stickiness",
type=float, type=float,
default=20, default=20,
help="The percent of messages to repeat recent folks.", help="The percent of messages to repeat recent folks.",
@ -1071,7 +1071,7 @@ def generate_and_send_messages(
randkey = random.randint(1, random_max) randkey = random.randint(1, random_max)
if ( if (
num_messages > 0 num_messages > 0
and random.randint(1, random_max) * 100.0 / random_max < options["stickyness"] and random.randint(1, random_max) * 100.0 / random_max < options["stickiness"]
): ):
# Use an old recipient # Use an old recipient
message_type, recipient_id, saved_data = recipients[num_messages - 1] message_type, recipient_id, saved_data = recipients[num_messages - 1]