changed ping algorithm
Merge pull request #33 from wizzardo/master

Сhanged ping algorithm