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

Values of 2 linked Intervals do not match to total interval (10:00-11:00, 11:00-12:00 and 10:00-12:00) #152

Open
simonuwe opened this issue Feb 3, 2022 · 3 comments

Comments

@simonuwe
Copy link
Contributor

simonuwe commented Feb 3, 2022

When selecting 2 intervals for example 10:00-11:00 and 11:00-12:00 and sum the values for example of the "#statement calls" this sum does not match with the values returned for the overall interval 10:00-12:00

Reason:
When checking the numbers in for example in powa_statements_history/powa_statements_history_current
I see that the calculation for the GUI uses the first and the last timestamp inside the interval you entered in the GUI.
Tthe number fit when I substract the values at the first timestamp from the values of the last timestamp.
That seems to be the reason the the sum of the values of to linked intervals 10:00-11:00 and 11:00-12:00 do not match the overall interval 10:00-12:00

When using short intervals for example 10 minutes the values of only 5 minutes are shown in the table grid.

Solution: Always use the last timestamp below the start and the end interval

@rjuju
Copy link
Member

rjuju commented Feb 4, 2022

Hi,
Thanks for the report. I unfortunately didn't have time to look at it yet. However, this is a problem with the UI right? Could you move this issue to https://github.com/powa-team/powa-web/issues?

@simonuwe
Copy link
Contributor Author

simonuwe commented Feb 4, 2022

You are right, I used the wrong place.
Unfortunately I can not transfer the issue to powa-web - No transfer visible.

@rjuju rjuju transferred this issue from powa-team/powa Feb 4, 2022
@rjuju
Copy link
Member

rjuju commented Feb 4, 2022

I actually didn't know that it was possible to transfer an issue, so I was thinking closing it and reopening anouther one. But after one quick search I just found the transfer button!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants