Fix typo.

1. The method name 'framePerSecond' should be 'packetPerSecond' to match the context.
2. The condition of if statement should use '&&' but not '&'.