dmegahan / TwitchStats

Python bot for scraping mutliple Twitch.tv streams and IRCs for stream statistics
Apache License 2.0
1 stars 0 forks source link

Peak Viewers and Average viewers dividing by 0 in session computations #40

Closed dmegahan closed 9 years ago

dmegahan commented 9 years ago

Division by 0 is happening and returning -1 as peak viewers and average viewers, because of the catch and exception.

]data\itmejp\stats\D12_M05_Y2015_H16_m58_s12.json shows this.

dmegahan commented 9 years ago

Fixed in https://github.com/dmegahan/TwitchStats/commit/e7f184b8c28151004fb0da171e25d21ba63e5c1a. They were being reset everytime a new line was read from the csv, instead of being initialized outside of the loop.