Fix typo.

1. The framePerSecond should be packetPerSecond to match the context.
2. The condition of if statement should use &&.
Merge pull request #1 from oliver98844/master

Fix typo.