Fix ZeroDivisionError: division by zero #488
The drawing of the graph might have changed with this new calculation of timeGrouping, but I can't really see a difference by looking at it quickly.