Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a little jitter to sleep #167

Merged
merged 1 commit into from
Jul 22, 2016
Merged

Add a little jitter to sleep #167

merged 1 commit into from
Jul 22, 2016

Conversation

brantje
Copy link
Contributor

@brantje brantje commented Jul 22, 2016

Should make it a bit harder for them to detect us.

@douglascamata douglascamata merged commit 5ca6c17 into PokemonGoF:dev Jul 22, 2016
@douglascamata
Copy link
Member

@brantje thanks!

@tstumm
Copy link
Contributor

tstumm commented Jul 22, 2016

I'm not sure if your calculations are correct.

@tstumm
Copy link
Contributor

tstumm commented Jul 22, 2016

Lets imagine you want so sleep 5 secs.

jitter = 5 * 1000 / 10 = 5 * 100 = 500

so sleep_time is something in [5-500, 5+500] = [-495, 505] ....

@brantje
Copy link
Contributor Author

brantje commented Jul 22, 2016

Just some randomness to prevent them from seeing a pattern

@tstumm
Copy link
Contributor

tstumm commented Jul 22, 2016

Yep but we did not invent time machines yet, so negative seconds are not possible.

@tstumm
Copy link
Contributor

tstumm commented Jul 22, 2016

Jitter should be like 10% of seconds, so jitter = 0.1 * seconds

MerlionRock added a commit to MerlionRock/PokemonGo-Bot that referenced this pull request Aug 5, 2017
Added Gen 2 Pokemons to "evolve_for_xp" rule
There are:
| `PokemonGoF#161`<br>`Sentret`   | `PokemonGoF#220`<br>`Swinub` | `PokemonGoF#163`<br>`Hoothoot`| `PokemonGoF#165`<br>`Ledyba`  | `PokemonGoF#177`<br>`Natu`      | `PokemonGoF#167`<br>`Spinarak`  |
| `PokemonGoF#194`<br>`Wooper`    | `PokemonGoF#183`<br>`Marill` | `PokemonGoF#223`<br>`Remoraid`|                     |                       |                       |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants