Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage timespans graph is broken again #96

Closed
dgets opened this issue Feb 3, 2019 · 1 comment
Closed

Usage timespans graph is broken again #96

dgets opened this issue Feb 3, 2019 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dgets
Copy link
Owner

dgets commented Feb 3, 2019

I'm not sure what's going on here, but for some reason the graphing javascript is not working when passed the timespans as calculated by timespans.append(int(current_delta.total_seconds() / 3600)). When I remove the int() from the calculation, there are graph bars appearing, however they're showing negative intervals for the amount of time, whether this is calculated from the seconds, or the hours. So it's not some sort of overflow due to the number of seconds... Not sure what's going on here, but things were working not that long ago, so it can't be too major of an issue.

@dgets dgets added the bug Something isn't working label Feb 3, 2019
@dgets dgets added this to the full release milestone Feb 3, 2019
@dgets dgets self-assigned this Feb 3, 2019
@dgets
Copy link
Owner Author

dgets commented Feb 3, 2019

Whatever is going on, there is definitely something, when calculated with int(), that is breaking the data that is sent to the graphing routine, because it's not even able to calculate the ticks on the vertical access, which is a sign of that data being corrupted from the format that the D3 library is expecting it to be in. :P

@dgets dgets closed this as completed in 215252c Feb 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant