这是indexloc提供的服务,不要输入任何密码
Skip to content

Error displaying charts for certain timescales #1

@akinsgre

Description

@akinsgre

When displaying a chart with a certain timescales, an exception is raised in the logs and the charts don't display

There is a gist here https://gist.github.com/1676729 which shows the logging output (including some additional logging in my fork that shows why the issue occurs)

I think the code should be written such that the timeslices is equal to the start_time - end_time [ ie, timeslices = Array.new(((start_time - end_time) / seconds).floor) ] because the start_time is the feeds.first.created_at which is the most recent feed having the greater absolute time value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions