Skip to content

Conversation

@rullzer
Copy link
Member

@rullzer rullzer commented Feb 11, 2019

Before we actually didn't check each bit of the bitmask. Now we do.

Testing is easy. Just try to run the added testcases without this patch.

Before we actually didn't check each bit of the bitmask. Now we do.

Signed-off-by: Roeland Jago Douma <[email protected]>
@rullzer rullzer added bug 3. to review Waiting for reviews labels Feb 11, 2019
@rullzer rullzer added this to the Nextcloud 16 milestone Feb 11, 2019
$bitmask = 1 << (7 - ($i % 8));

$part = $part & $bitmask;
$orig = $orig & $bitmask;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$part &= $bitmask; and $orig &= $bitmask; would also work but is hard to read.

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

@rullzer rullzer merged commit 004f7fa into master Feb 12, 2019
@rullzer rullzer deleted the fix/throttler_bitmask branch February 12, 2019 07:54
@rullzer
Copy link
Member Author

rullzer commented Feb 12, 2019

/backport to stable15

@rullzer
Copy link
Member Author

rullzer commented Feb 12, 2019

/backport to stable14

@backportbot-nextcloud
Copy link

backport to stable15 in #14151

@backportbot-nextcloud
Copy link

backport to stable14 in #14152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants