Fixes variable scope for hotswap stats.
Merge pull request #4 from mikaelbr/hs

Fixes variable scope for hotswap stats.