Fix thermal calculation bug.
Merge pull request #40 from lordnathan0/master

Fix thermal calculation bug (non-executable version only)