Fix typo.

1. The framePerSecond should be packetPerSecond to match the context.
2. The condition of if statement should use &&.