iobridge/thingspeak — pull request #2 by akinsgre (2012-01-25 19:05:07+00:00)
Title: Changing the math for timescale based on order of feeds

As mentioned in the issues notes, the original code subtracted start_time from end_time

Since Feed.find returned a "created_at desc" sorted result, that meant that start_time often is larger than end_time resulting in a negative value (which is later used as an Array size)

I simple changed one line so that (start_time - end_time)