-
Notifications
You must be signed in to change notification settings - Fork 249
Statistics task for previous chart data #898
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
Conversation
My sincere apologies, we had to re-do the history of dev-latest. Can you apply your commits to the top of current dev-latest? |
public previousDataLabel: number[] = []; | ||
public previousHashrateData: number[] = []; | ||
public previousTemperatureData: number[] = []; | ||
public previousPowerData: number[] = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it feasible to use the existing arrays for this, instead of having 4 new ones?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was my first approach but sometimes the chart was distorted. It seems the previous and new data arrives asynchronous.
Is it possible to synchronize the observable subscriptions?
Thanks for the rebase, hope it wasn't too bad. Did a code level review, with one comment. I have a feeling it can be simplified, by re-using the existing storage, but not 100% sure. I haven't tested the code yet. |
No the rebase was successful :) |
LGTM |
with new API endpoint for statistics.
The configuration with 0 data points is live data only (old behavior) with statistics disabled.
The poll rate is automatically set based on the configured duration.